2024-03-21 15:00:36 +01:00
|
|
|
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
|
|
|
# and may be overwritten by future invocations. Please make changes
|
|
|
|
|
# to /etc/nixos/configuration.nix instead.
|
2024-11-19 10:31:29 +01:00
|
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
modulesPath,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2024-03-21 15:00:36 +01:00
|
|
|
|
|
|
|
|
|
{
|
2024-11-19 10:31:29 +01:00
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2024-03-21 15:00:36 +01:00
|
|
|
|
|
|
|
|
|
boot.kernelPackages = lib.mkForce pkgs.linuxPackages;
|
|
|
|
|
|
|
|
|
|
boot.initrd.luks.devices.crypted = {
|
|
|
|
|
device = "/dev/md/raid1";
|
|
|
|
|
preLVM = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
|
|
|
"xhci_pci"
|
|
|
|
|
"ahci"
|
|
|
|
|
"nvme"
|
|
|
|
|
"sd_mod"
|
|
|
|
|
"tpm"
|
|
|
|
|
"tpm_tis"
|
|
|
|
|
"trusted"
|
|
|
|
|
"tpm_crb"
|
|
|
|
|
"tpm_tis_core"
|
|
|
|
|
"rng_core"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot.swraid.enable = true;
|
|
|
|
|
boot.swraid.mdadmConf = ''
|
|
|
|
|
MAILADDR admin@hoyer.xyz
|
|
|
|
|
'';
|
|
|
|
|
disko.devices = import ./server-raid.nix {
|
|
|
|
|
inherit lib;
|
2024-11-19 10:31:29 +01:00
|
|
|
|
disks = [
|
|
|
|
|
"/dev/sda"
|
|
|
|
|
"/dev/sdb"
|
|
|
|
|
];
|
2024-03-21 15:00:36 +01:00
|
|
|
|
};
|
|
|
|
|
|
2024-11-19 10:31:29 +01:00
|
|
|
|
swapDevices = [ { device = "/swapfile"; } ];
|
2024-03-21 15:00:36 +01:00
|
|
|
|
}
|