Simon Bruder
b805fb5ef1
The legacy BIOS does not show when the HDMI output is used with a 4K screen.
85 lines
2 KiB
Nix
85 lines
2 KiB
Nix
{ config, lib, modulesPath, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot = {
|
|
kernelModules = [ "kvm-intel" ];
|
|
extraModulePackages = [ ];
|
|
loader = {
|
|
grub.enable = false;
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
initrd = {
|
|
availableKernelModules = [ "aesni_intel" "ahci" "ehci_pci" "nvme" "sd_mod" "sr_mod" "usb_storage" "usbhid" "xhci_pci" ];
|
|
kernelModules = [ "dm-snapshot" "sg" ];
|
|
luks.devices = {
|
|
root = {
|
|
name = "root";
|
|
device = "/dev/disk/by-uuid/1607bb2a-329b-4252-b11a-b43eb6b7bf0c";
|
|
preLVM = true;
|
|
allowDiscards = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/9e6b279e-6995-44da-b673-21b9e23a5278";
|
|
fsType = "btrfs";
|
|
options = [ "discard=async" "noatime" "compress=zstd" ];
|
|
};
|
|
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/75DA-DFE2";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
"/data" = {
|
|
device = "/dev/mapper/data";
|
|
fsType = "btrfs";
|
|
options = [ "compress=zstd" ];
|
|
encrypted = {
|
|
label = "data";
|
|
enable = true;
|
|
blkDev = "/dev/disk/by-uuid/7f4ba71e-3aca-4294-b37f-49f37b584dbd";
|
|
keyFile = "/mnt-root/root/luks-data";
|
|
};
|
|
};
|
|
|
|
"/data/ssd" = {
|
|
device = "/dev/mapper/data-ssd";
|
|
fsType = "btrfs";
|
|
options = [ "discard=async" "noatime" "compress=zstd" ];
|
|
encrypted = {
|
|
# !!! HACK
|
|
label = "data-ssd --allow-discards";
|
|
enable = true;
|
|
blkDev = "/dev/disk/by-uuid/41baa168-7fa0-4eb3-b314-50766ddf126d";
|
|
keyFile = "/mnt-root/root/luks-data";
|
|
};
|
|
};
|
|
};
|
|
|
|
swapDevices = [
|
|
{ device = "/dev/disk/by-uuid/2774d182-ddc9-4d79-886e-995fcd60a88a"; }
|
|
];
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
|
|
|
# GPU
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
rocm-opencl-icd
|
|
];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
clinfo
|
|
radeontop
|
|
rocm-smi
|
|
];
|
|
}
|