dotfiles/hosts/pixnix/hardware-configuration.nix

46 lines
1 KiB
Nix
Raw Normal View History

2023-09-23 23:03:35 +00:00
{ config, lib, pkgs, modulesPath, ... }:
{
2023-09-25 15:20:14 +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 = {
availableKernelModules = [ "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
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-23 23:03:35 +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
2023-09-25 15:03:46 +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";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}