dotfiles/nixos/pixnix/hardware-configuration.nix

44 lines
1 KiB
Nix
Raw Normal View History

2024-12-20 01:30:06 +00:00
{ config, lib, modulesPath, ... }:
2023-09-23 23:03:35 +00:00
{
2024-12-20 01:30:06 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2023-09-23 23:03:35 +00:00
2023-09-25 15:03:46 +00:00
boot = {
initrd = {
2024-12-20 01:30:06 +00:00
availableKernelModules =
[ "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
2023-09-25 15:03:46 +00:00
kernelModules = [ ];
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
loader = {
systemd-boot = {
enable = true;
consoleMode = "max";
};
efi.canTouchEfiVariables = true;
};
2023-09-25 15:03:46 +00:00
};
2023-09-25 23:13:42 +00:00
fileSystems = {
2023-09-25 15:03:46 +00:00
"/" = {
device = "/dev/disk/by-uuid/b2c7656b-2292-4dc9-94f2-a66690a14969";
2023-09-23 23:03:35 +00:00
fsType = "ext4";
};
2023-09-25 15:03:46 +00:00
"/boot" = {
device = "/dev/disk/by-uuid/495A-C854";
2023-09-23 23:03:35 +00:00
fsType = "vfat";
};
2023-09-25 15:03:46 +00:00
};
2023-09-23 23:03:35 +00:00
2024-12-20 01:30:06 +00:00
swapDevices =
[{ device = "/dev/disk/by-uuid/9cd48b44-07e5-4d0f-aaf0-7ca07e7b7945"; }];
2023-09-23 23:03:35 +00:00
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2024-12-20 01:30:06 +00:00
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2023-09-23 23:03:35 +00:00
}