2020-12-06 10:53:40 +01:00
|
|
|
{ config, lib, modulesPath, pkgs, ... }:
|
2020-10-17 23:18:22 +02:00
|
|
|
|
|
|
|
{
|
2020-12-06 10:53:40 +01:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
2020-10-17 23:18:22 +02:00
|
|
|
|
2020-12-06 10:53:40 +01:00
|
|
|
boot = {
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
extraModulePackages = [ ];
|
2020-12-06 11:03:23 +01:00
|
|
|
loader.grub.device = "/dev/disk/by-id/ata-MTFDDAK256TBN-1AR15ABHA_UFZMQ01ZR50NMM";
|
2020-12-06 10:53:40 +01:00
|
|
|
initrd = {
|
2021-02-17 15:31:19 +01:00
|
|
|
availableKernelModules = [ "aesni_intel" "ahci" "ehci_pci" "sd_mod" "usb_storage" "usbhid" "xhci_pci" ];
|
2020-12-06 10:53:40 +01:00
|
|
|
kernelModules = [ "dm-snapshot" ];
|
2020-12-06 11:03:23 +01:00
|
|
|
luks.devices = {
|
|
|
|
root = {
|
|
|
|
name = "root";
|
|
|
|
device = "/dev/disk/by-uuid/d7e4d213-8a13-4059-a011-0f68081e86d8";
|
|
|
|
preLVM = true;
|
|
|
|
allowDiscards = true;
|
|
|
|
};
|
|
|
|
};
|
2020-12-06 10:53:40 +01:00
|
|
|
};
|
|
|
|
};
|
2020-10-17 23:18:22 +02:00
|
|
|
|
2020-12-06 10:53:40 +01:00
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
2020-10-17 23:18:22 +02:00
|
|
|
device = "/dev/disk/by-uuid/024e31ab-aa98-4070-95be-7980043541ac";
|
|
|
|
fsType = "ext4";
|
2021-01-29 15:50:16 +01:00
|
|
|
options = [ "discard" "noatime" ];
|
2020-10-17 23:18:22 +02:00
|
|
|
};
|
|
|
|
|
2020-12-06 10:53:40 +01:00
|
|
|
"/boot" = {
|
2020-10-17 23:18:22 +02:00
|
|
|
device = "/dev/disk/by-uuid/c5bde64b-c629-438d-a78b-c4341796dae9";
|
|
|
|
fsType = "ext2";
|
|
|
|
};
|
2020-12-06 11:03:23 +01:00
|
|
|
|
|
|
|
"/data" = {
|
|
|
|
device = "/dev/mapper/data";
|
|
|
|
encrypted = {
|
|
|
|
label = "data";
|
|
|
|
enable = true;
|
|
|
|
blkDev = "/dev/disk/by-uuid/576088d4-9aae-4159-a028-feadb2621a1a";
|
2021-03-01 15:27:18 +01:00
|
|
|
keyFile = "/mnt-root/root/luks-data";
|
2020-12-06 11:03:23 +01:00
|
|
|
};
|
|
|
|
};
|
2020-12-06 10:53:40 +01:00
|
|
|
};
|
2020-10-17 23:18:22 +02:00
|
|
|
|
2020-12-06 10:53:40 +01:00
|
|
|
swapDevices = [
|
|
|
|
{ device = "/dev/disk/by-uuid/78f5277f-a6e5-4297-99cd-d3ea5de5317e"; }
|
|
|
|
];
|
2020-10-17 23:18:22 +02:00
|
|
|
|
2021-01-29 15:54:59 +01:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
2021-01-29 15:50:16 +01:00
|
|
|
|
|
|
|
# GPU
|
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
|
|
amdvlk
|
|
|
|
rocm-opencl-icd
|
|
|
|
];
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
clinfo
|
2021-04-25 09:51:10 +02:00
|
|
|
unstable.radeontop
|
2021-01-29 15:50:16 +01:00
|
|
|
rocm-smi
|
|
|
|
];
|
2020-10-17 23:18:22 +02:00
|
|
|
}
|