From b53c946c3994484fd83fdc4033d726adb760c784 Mon Sep 17 00:00:00 2001 From: "root@nixos-nas" <> Date: Wed, 11 Jun 2025 18:11:08 +0000 Subject: [PATCH] better? --- configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configuration.nix b/configuration.nix index a91ddf1..f47ebb0 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,6 +6,11 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; 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"]; networking.hostName = "nix-nas"; @@ -14,11 +19,13 @@ fileSystems."/" = { device = "rpool/root"; fsType = "zfs"; + neededForBoot = true; }; fileSystems."/nix" = { device = "rpool/nix"; fsType = "zfs"; + neededForBoot = true; }; fileSystems."/home" =