From 51f3b5c3a9da217c647e66a7adfaacf572b4338c Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sun, 21 Jan 2024 21:31:16 +0000 Subject: [PATCH] Auto-import library ZFS pool --- hosts/library/default.nix | 1 + hosts/library/hardware-configuration.nix | 45 ------------------------ 2 files changed, 1 insertion(+), 45 deletions(-) diff --git a/hosts/library/default.nix b/hosts/library/default.nix index c7a2cf2..c7498aa 100644 --- a/hosts/library/default.nix +++ b/hosts/library/default.nix @@ -10,6 +10,7 @@ with lib.my; boot = { loader.systemd-boot.enable = true; loader.efi.canTouchEfiVariables = true; + zfs.extraPools = [ "library" ]; }; networking = { diff --git a/hosts/library/hardware-configuration.nix b/hosts/library/hardware-configuration.nix index 1ac8b81..198166b 100644 --- a/hosts/library/hardware-configuration.nix +++ b/hosts/library/hardware-configuration.nix @@ -57,51 +57,6 @@ fsType = "vfat"; }; - fileSystems."/mnt/library" = { - device = "library"; - fsType = "zfs"; - }; - - fileSystems."/mnt/library/books" = { - device = "library/books"; - fsType = "zfs"; - }; - - fileSystems."/mnt/library/fonts" = { - device = "library/fonts"; - fsType = "zfs"; - }; - - fileSystems."/mnt/library/movies" = { - device = "library/movies"; - fsType = "zfs"; - }; - - fileSystems."/mnt/library/music" = { - device = "library/music"; - fsType = "zfs"; - }; - - fileSystems."/mnt/library/software" = { - device = "library/software"; - fsType = "zfs"; - }; - - fileSystems."/mnt/library/tv" = { - device = "library/tv"; - fsType = "zfs"; - }; - - fileSystems."/mnt/library/videos" = { - device = "library/videos"; - fsType = "zfs"; - }; - - fileSystems."/mnt/library/web" = { - device = "library/web"; - fsType = "zfs"; - }; - swapDevices = [ ]; networking.useDHCP = lib.mkDefault true;