diff --git a/configuration.nix b/configuration.nix index caf4c60..20df6e1 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,15 +6,22 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.initrd.kernelModules = [ "overlay" "vmd" ]; - # root auch in stage1 schon rw mounten, damit dinge verzeichnisse anlegen können. - boot.initrd.postMountCommands = '' - mount -o remount,rw / - ''; boot.zfs.extraPools = ["tank"]; networking.hostName = "nix-nas"; networking.hostId = "39373132"; # via: head -c4 /etc/machine-id | od -An -tx4 + fileSystems = { + "/nix" = { + device = "rpool/nix"; + fsType = "zfs"; + }; + "/home" = { + device = "rpool/home"; + fsType = "zfs"; + }; + }; + users.users.nicole = { isNormalUser = true; hashedPassword = "$6$p73d5mOLoSuJGOol$KRlszaPXZK9/frADlfR3kAr/57DD5f4.CPTGNNX80QWEWFE5y.bM1WiZwmRHiAlrws3q/zCDQ6AqeSyCUX.8U/"; diff --git a/disko.nix b/disko.nix index 4852f07..2b3c945 100644 --- a/disko.nix +++ b/disko.nix @@ -42,12 +42,12 @@ }; nix = { type = "zfs_fs"; - mountpoint = "/nix"; + mountpoint = "legacy"; options.compression = "zstd"; }; home = { type = "zfs_fs"; - mountpoint = "/home"; + mountpoint = "legacy"; options.compression = "zstd"; }; };