From c3a0edc79c4502fec6bbb2afc31261b7d64f2e12 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Tue, 26 Dec 2023 23:05:04 -0500 Subject: [PATCH] Setup ZFS on nixnuc --- modules/hosts/nixos/nixnuc/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/modules/hosts/nixos/nixnuc/default.nix b/modules/hosts/nixos/nixnuc/default.nix index f587f2a..b7a73a4 100644 --- a/modules/hosts/nixos/nixnuc/default.nix +++ b/modules/hosts/nixos/nixnuc/default.nix @@ -6,13 +6,20 @@ system.stateVersion = "23.11"; # Bootloader. - boot.loader = { - efi.canTouchEfiVariables = true; - systemd-boot.enable = true; + boot = { + loader = { + efi.canTouchEfiVariables = true; + systemd-boot.enable = true; + }; + supportedFilesystems = [ "zfs" ]; + zfs = { + extraPools = [ "orico" ]; + forceImportRoot = false; + }; }; environment.systemPackages = with pkgs; [ - helix + intel-gpu-tools jellyfin jellyfin-ffmpeg jellyfin-web @@ -39,6 +46,8 @@ # Or disable the firewall altogether. # firewall.enable = false; + hostId = "c5826b45"; # head -c4 /dev/urandom | od -A none -t x4 + networkmanager.enable = true; }; @@ -111,6 +120,7 @@ "--ssh" ]; }; + zfs.autoScrub.enable = true; }; sops = {