fix hostname and add all filesystems

This commit is contained in:
Christoph Cullmann 2024-03-27 07:35:43 +01:00
parent 6d9d01fc6c
commit ed57db359b

View file

@ -14,7 +14,10 @@
boot.initrd.luks.devices."crypt-system".device = "/dev/disk/by-id/nvme-Seagate_FireCuda_530_ZP4000GM30013_7VS01VBM-part2"; boot.initrd.luks.devices."crypt-system".device = "/dev/disk/by-id/nvme-Seagate_FireCuda_530_ZP4000GM30013_7VS01VBM-part2";
# vms # vms
#boot.initrd.luks.devices."crypt-vms".device = "/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F"; boot.initrd.luks.devices."crypt-vms".device = "/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F";
# projects
boot.initrd.luks.devices."crypt-projects".device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_2TB_S69ENF0R846614L";
fileSystems."/" = fileSystems."/" =
{ device = "/dev/mapper/crypt-system"; { device = "/dev/mapper/crypt-system";
@ -60,28 +63,28 @@
}; };
fileSystems."/etc/nixos" = fileSystems."/etc/nixos" =
{ device = "/data/nixos/mini"; { device = "/data/nixos/neko";
fsType = "none"; fsType = "none";
neededForBoot = true; neededForBoot = true;
options = [ "bind" ]; options = [ "bind" ];
depends = [ "/data" ]; depends = [ "/data" ];
}; };
# fileSystems."/home/cullmann/vms" = fileSystems."/home/cullmann/vms" =
# { device = "/dev/mapper/crypt-vms"; { device = "/dev/mapper/crypt-vms";
# fsType = "btrfs"; fsType = "btrfs";
# neededForBoot = true; neededForBoot = true;
# options = [ "noatime" "nodiratime" ]; options = [ "noatime" "nodiratime" ];
# depends = [ "/home" ]; depends = [ "/home" ];
# }; };
# fileSystems."/home/cullmann/projects" = fileSystems."/home/cullmann/projects" =
# { device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_2TB_S69ENF0R846614L"; { device = "/dev/mapper/crypt-projects";
# fsType = "bcachefs"; fsType = "btrfs";
# neededForBoot = true; neededForBoot = true;
# options = [ "noatime" "nodiratime" ]; options = [ "noatime" "nodiratime" ];
# depends = [ "/home" ]; depends = [ "/home" ];
# }; };
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;