2020-12-06 10:44:59 +01:00
|
|
|
{ config, lib, modulesPath, pkgs, ... }:
|
2020-08-30 10:03:48 +02:00
|
|
|
|
|
|
|
{
|
2020-12-06 10:53:40 +01:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
2020-08-30 10:03:48 +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-INTEL_SSDSC2KB480G7_PHYS749202D6480BGN";
|
2020-12-06 10:53:40 +01:00
|
|
|
initrd = {
|
2021-02-17 15:31:19 +01:00
|
|
|
availableKernelModules = [ "aesni_intel" "ahci" "ehci_pci" "rtsx_pci_sdmmc" "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/f3a2fa57-581b-4e95-9a45-d61cda9edc54";
|
|
|
|
preLVM = true;
|
|
|
|
allowDiscards = true;
|
|
|
|
};
|
|
|
|
};
|
2020-12-06 10:53:40 +01:00
|
|
|
};
|
|
|
|
};
|
2020-08-30 10:03:48 +02:00
|
|
|
|
2020-12-06 10:53:40 +01:00
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
2020-08-30 10:03:48 +02:00
|
|
|
device = "/dev/disk/by-uuid/8937d1ac-23cb-456f-9c16-e348acc66bb7";
|
|
|
|
fsType = "ext4";
|
2021-01-29 15:50:16 +01:00
|
|
|
options = [ "discard" "noatime" ];
|
2020-08-30 10:03:48 +02:00
|
|
|
};
|
|
|
|
|
2020-12-06 10:53:40 +01:00
|
|
|
"/boot" = {
|
2020-08-30 10:03:48 +02:00
|
|
|
device = "/dev/disk/by-uuid/da2e90cc-1e0c-4691-8807-5d2f4858df6e";
|
|
|
|
fsType = "ext2";
|
|
|
|
};
|
2020-12-06 10:53:40 +01:00
|
|
|
};
|
2020-08-30 10:03:48 +02:00
|
|
|
|
2020-12-06 10:53:40 +01:00
|
|
|
swapDevices = [
|
|
|
|
{ device = "/dev/disk/by-uuid/b9ad2d56-fee0-49df-98c1-00d93d991b9f"; }
|
|
|
|
];
|
2020-08-30 10:03:48 +02:00
|
|
|
|
2021-05-27 11:34:49 +02:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
2021-01-20 16:27:51 +01:00
|
|
|
|
|
|
|
# Most of the time I want to use both screens at the same time and suspend it
|
|
|
|
# regularily by closing the lid
|
|
|
|
services.logind.lidSwitchDocked = config.services.logind.lidSwitch;
|
2021-01-29 15:50:16 +01:00
|
|
|
|
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
|
|
beignet # OpenCL for old intel GPU
|
|
|
|
];
|
2020-08-30 10:03:48 +02:00
|
|
|
}
|