This commit is contained in:
root@nixos-nas 2025-06-11 18:11:08 +00:00
parent f98a761db3
commit b53c946c39

View File

@ -6,6 +6,11 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.kernelModules = [ "overlay" "vmd" ]; boot.initrd.kernelModules = [ "overlay" "vmd" ];
boot.initrd.systemd.tmpfiles.settings."nixdirs" = {
"/nix".d = { mode = "0755"; type = "d"; user = "root"; group = "root";};
"/nix/.ro-store".d = { mode = "0755"; type = "d"; user = "root"; group = "root";};
"/nix/.rw-store".d = { mode = "0755"; type = "d"; user = "root"; group = "root";};
};
boot.zfs.extraPools = ["tank"]; boot.zfs.extraPools = ["tank"];
networking.hostName = "nix-nas"; networking.hostName = "nix-nas";
@ -14,11 +19,13 @@
fileSystems."/" = fileSystems."/" =
{ device = "rpool/root"; { device = "rpool/root";
fsType = "zfs"; fsType = "zfs";
neededForBoot = true;
}; };
fileSystems."/nix" = fileSystems."/nix" =
{ device = "rpool/nix"; { device = "rpool/nix";
fsType = "zfs"; fsType = "zfs";
neededForBoot = true;
}; };
fileSystems."/home" = fileSystems."/home" =