2023-01-15 18:56:16 +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.
|
|
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2023-09-17 15:57:39 +02:00
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2023-01-15 18:56:16 +01:00
|
|
|
|
|
2023-07-28 17:36:50 +02:00
|
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" ];
|
2023-06-09 18:28:17 +02:00
|
|
|
|
boot.initrd.kernelModules = [ "i915" ];
|
2023-01-15 18:56:16 +01:00
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
|
|
2024-03-26 19:13:52 +01:00
|
|
|
|
# system
|
|
|
|
|
boot.initrd.luks.devices."crypt-system".device = "/dev/disk/by-id/nvme-Seagate_FireCuda_530_ZP4000GM30013_7VS01VBM-part2";
|
|
|
|
|
|
|
|
|
|
# vms
|
|
|
|
|
#boot.initrd.luks.devices."crypt-vms".device = "/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F";
|
|
|
|
|
|
2023-06-09 18:26:35 +02:00
|
|
|
|
fileSystems."/" =
|
2024-03-26 19:13:52 +01:00
|
|
|
|
{ device = "/dev/mapper/crypt-system";
|
|
|
|
|
fsType = "btrfs";
|
2024-01-11 18:33:21 +01:00
|
|
|
|
neededForBoot = true;
|
2024-03-26 19:13:52 +01:00
|
|
|
|
options = [ "subvol=root" "noatime" "nodiratime" ];
|
2023-06-09 18:26:35 +02:00
|
|
|
|
};
|
2023-06-01 19:22:13 +02:00
|
|
|
|
|
2023-01-15 18:56:16 +01:00
|
|
|
|
fileSystems."/boot" =
|
2024-01-11 18:33:21 +01:00
|
|
|
|
{ device = "/dev/disk/by-id/nvme-Seagate_FireCuda_530_ZP4000GM30013_7VS01VBM-part1";
|
2023-01-15 18:56:16 +01:00
|
|
|
|
fsType = "vfat";
|
2024-01-11 18:33:21 +01:00
|
|
|
|
neededForBoot = true;
|
2023-01-15 18:56:16 +01:00
|
|
|
|
};
|
|
|
|
|
|
2023-06-09 18:26:35 +02:00
|
|
|
|
fileSystems."/nix" =
|
2024-03-26 19:13:52 +01:00
|
|
|
|
{ device = "/dev/mapper/crypt-system";
|
|
|
|
|
fsType = "btrfs";
|
2024-01-11 18:33:21 +01:00
|
|
|
|
neededForBoot = true;
|
2024-03-26 19:13:52 +01:00
|
|
|
|
options = [ "subvol=nix" "noatime" "nodiratime" ];
|
2023-06-09 18:26:35 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/data" =
|
2024-03-26 19:13:52 +01:00
|
|
|
|
{ device = "/dev/mapper/crypt-system";
|
|
|
|
|
fsType = "btrfs";
|
2024-01-11 18:33:21 +01:00
|
|
|
|
neededForBoot = true;
|
2024-03-26 19:13:52 +01:00
|
|
|
|
options = [ "subvol=data" "noatime" "nodiratime" ];
|
2023-06-09 18:26:35 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/home" =
|
2024-01-11 18:33:21 +01:00
|
|
|
|
{ device = "/data/home";
|
2023-06-09 18:26:35 +02:00
|
|
|
|
fsType = "none";
|
2024-01-11 18:33:21 +01:00
|
|
|
|
neededForBoot = true;
|
2023-06-09 18:26:35 +02:00
|
|
|
|
options = [ "bind" ];
|
2024-01-11 18:33:21 +01:00
|
|
|
|
depends = [ "/data" ];
|
2023-06-09 18:26:35 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/root" =
|
2024-01-11 18:33:21 +01:00
|
|
|
|
{ device = "/data/root";
|
2023-06-09 18:26:35 +02:00
|
|
|
|
fsType = "none";
|
2024-01-11 18:33:21 +01:00
|
|
|
|
neededForBoot = true;
|
2023-06-09 18:26:35 +02:00
|
|
|
|
options = [ "bind" ];
|
2024-01-11 18:33:21 +01:00
|
|
|
|
depends = [ "/data" ];
|
2023-06-09 18:26:35 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/etc/nixos" =
|
2024-03-26 19:13:52 +01:00
|
|
|
|
{ device = "/data/nixos/mini";
|
2023-06-09 18:26:35 +02:00
|
|
|
|
fsType = "none";
|
2024-01-11 18:33:21 +01:00
|
|
|
|
neededForBoot = true;
|
2023-06-09 18:26:35 +02:00
|
|
|
|
options = [ "bind" ];
|
2024-01-11 18:33:21 +01:00
|
|
|
|
depends = [ "/data" ];
|
2023-06-09 18:26:35 +02:00
|
|
|
|
};
|
|
|
|
|
|
2024-03-26 19:13:52 +01:00
|
|
|
|
# fileSystems."/home/cullmann/vms" =
|
|
|
|
|
# { device = "/dev/mapper/crypt-vms";
|
|
|
|
|
# fsType = "btrfs";
|
|
|
|
|
# neededForBoot = true;
|
|
|
|
|
# options = [ "noatime" "nodiratime" ];
|
|
|
|
|
# depends = [ "/home" ];
|
|
|
|
|
# };
|
2024-01-11 21:31:41 +01:00
|
|
|
|
|
2024-03-26 19:13:52 +01:00
|
|
|
|
# fileSystems."/home/cullmann/projects" =
|
|
|
|
|
# { device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_2TB_S69ENF0R846614L";
|
|
|
|
|
# fsType = "bcachefs";
|
|
|
|
|
# neededForBoot = true;
|
|
|
|
|
# options = [ "noatime" "nodiratime" ];
|
|
|
|
|
# depends = [ "/home" ];
|
|
|
|
|
# };
|
2023-07-28 20:14:41 +02:00
|
|
|
|
|
2023-01-15 18:56:16 +01:00
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
}
|