final-finally?

This commit is contained in:
Nicole Dresselhaus 2025-06-11 16:20:13 +02:00
parent df58d5865e
commit cbd55764b7
2 changed files with 13 additions and 6 deletions

View File

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

View File

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