65 lines
1.7 KiB
Nix
65 lines
1.7 KiB
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
modulesPath,
|
||
|
...
|
||
|
}: {
|
||
|
imports = [
|
||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||
|
];
|
||
|
|
||
|
boot.initrd.availableKernelModules = [
|
||
|
"dm-snapshot"
|
||
|
"xhci_pci"
|
||
|
"ahci"
|
||
|
"nvme"
|
||
|
"usbhid"
|
||
|
"usb_storage"
|
||
|
"sd_mod"
|
||
|
"dm-raid"
|
||
|
"e1000e"
|
||
|
];
|
||
|
boot.initrd.kernelModules = [];
|
||
|
boot.kernelModules = ["kvm-intel"];
|
||
|
boot.extraModulePackages = [];
|
||
|
|
||
|
boot.initrd.luks.devices."ssd" = {
|
||
|
device = "/dev/disk/by-id/md-uuid-f8189c09:cb247cc7:22b79b5f:df888705";
|
||
|
};
|
||
|
|
||
|
boot.initrd.luks.devices."hdd" = {
|
||
|
device = "/dev/disk/by-id/md-uuid-85ed8a8e:9ddc5f09:c6ef6110:c00728fa";
|
||
|
};
|
||
|
|
||
|
fileSystems."/" = {
|
||
|
device = "/dev/disk/by-uuid/cb88e8b9-be51-43eb-a51a-cd021c90771c";
|
||
|
fsType = "ext4";
|
||
|
};
|
||
|
|
||
|
fileSystems."/boot" = {
|
||
|
device = "/dev/disk/by-uuid/3F6D-065E";
|
||
|
fsType = "vfat";
|
||
|
};
|
||
|
|
||
|
fileSystems."/data" = {
|
||
|
device = "/dev/disk/by-uuid/824341f0-fd56-4db7-bb7e-4f161d94144b";
|
||
|
fsType = "ext4";
|
||
|
};
|
||
|
|
||
|
swapDevices = [
|
||
|
{device = "/dev/disk/by-uuid/f37e9f96-0174-4cac-a0bb-b63b2a67a4ad";}
|
||
|
];
|
||
|
|
||
|
# 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.eno1.useDHCP = lib.mkDefault true;
|
||
|
|
||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
}
|