2022-04-20 10:53:28 +02:00
|
|
|
{ config, lib, pkgs, inputs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
|
|
|
initrd.kernelModules = [ ];
|
|
|
|
kernelPackages = pkgs.linuxPackages_hardened;
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
loader = {
|
|
|
|
systemd-boot = {
|
|
|
|
enable = true;
|
|
|
|
configurationLimit = 10;
|
|
|
|
};
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
modules.hardware.fs = {
|
|
|
|
enable = true;
|
|
|
|
ssd.enable = true;
|
2022-04-23 03:01:00 +02:00
|
|
|
xfs.enable = true;
|
2022-04-20 10:53:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
2022-04-23 03:01:00 +02:00
|
|
|
device = "/dev/disk/by-uuid/819f03bb-73d2-4ae1-9fd2-01099e8efae6";
|
|
|
|
fsType = "xfs";
|
2022-04-20 10:53:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
"/boot" = {
|
2022-04-23 03:01:00 +02:00
|
|
|
device = "/dev/disk/by-uuid/D018-F9AF";
|
2022-04-20 10:53:28 +02:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
};
|
2022-04-23 03:01:00 +02:00
|
|
|
|
|
|
|
swapDevices = [
|
|
|
|
{ device = "/dev/disk/by-uuid/01ba93e4-71e3-404d-9549-351e22130185"; }
|
|
|
|
{ device = "/dev/disk/by-uuid/dee63218-1666-4035-8d63-b9e0e0b2cd28"; }
|
|
|
|
];
|
|
|
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2022-04-20 10:53:28 +02:00
|
|
|
}
|