2024-05-28 14:38:22 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}:
|
2023-11-06 23:43:36 +01:00
|
|
|
|
|
|
|
{
|
2024-02-27 02:54:02 +01:00
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
initrd = {
|
2024-05-28 14:38:22 +02:00
|
|
|
availableKernelModules = [
|
|
|
|
"nvme"
|
|
|
|
"xhci_pci"
|
|
|
|
"usb_storage"
|
|
|
|
"sd_mod"
|
|
|
|
];
|
2024-02-27 02:54:02 +01:00
|
|
|
kernelModules = [ ];
|
2023-11-06 23:43:36 +01:00
|
|
|
};
|
2024-02-27 02:54:02 +01:00
|
|
|
kernelModules = [ "kvm-amd" ];
|
|
|
|
extraModulePackages = [ ];
|
|
|
|
};
|
2023-11-06 23:43:36 +01:00
|
|
|
|
2024-02-27 02:54:02 +01:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/2e1227f6-8725-43a3-aeb6-961df4ed9b25";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2023-11-06 23:43:36 +01:00
|
|
|
|
2024-05-28 14:38:22 +02:00
|
|
|
boot.initrd.luks.devices."luks-6f077715-c436-4254-acb2-66d8be0a0c55".device = "/dev/disk/by-uuid/6f077715-c436-4254-acb2-66d8be0a0c55";
|
2024-02-27 02:54:02 +01:00
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/877C-C918";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2023-11-06 23:43:36 +01:00
|
|
|
|
|
|
|
swapDevices = [ ];
|
|
|
|
|
|
|
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
|
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
|
|
# still possible to use this option, but it's recommended to use it in conjunction
|
|
|
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
# networking.interfaces.enp1s0f0.useDHCP = lib.mkDefault true;
|
|
|
|
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2024-05-28 14:38:22 +02:00
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2023-11-06 23:43:36 +01:00
|
|
|
}
|