1
0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-11-23 11:21:57 +01:00
git.oat.zone--dark-firepit-.../hosts/dark-firepit/hardware-configuration.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

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;
};
};
nix.settings.cores = 3;
nix.settings.max-jobs = 6;
2022-04-20 10:53:28 +02:00
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
}