Auto-import library ZFS pool

This commit is contained in:
2024-01-21 21:31:16 +00:00
parent 9f02f55c4f
commit 51f3b5c3a9
2 changed files with 1 additions and 45 deletions

View File

@ -10,6 +10,7 @@ with lib.my;
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
zfs.extraPools = [ "library" ];
};
networking = {

View File

@ -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;