nixos-config/hosts/i15/default.nix

39 lines
869 B
Nix
Raw Permalink Normal View History

2024-06-13 22:01:35 -03:00
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
2023-02-24 11:59:17 -03:00
networking.hostName = "i15"; # Define your hostname.
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2024-06-13 22:01:35 -03:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usb_storage"
"sd_mod"
"rtsx_usb_sdmmc"
];
2023-02-24 11:59:17 -03:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
disko.devices = (import ./partitions.nix { disks = [ "/dev/sda" ]; });
boot.loader.efi.efiSysMountPoint = "/boot/efi";
2024-06-13 22:01:35 -03:00
swapDevices = [
{
device = "/swap/swapfile";
size = (1024 * 8) + (1024 * 2); # RAM size + 2 GB
}
];
2023-02-24 11:59:17 -03:00
networking.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
2024-06-13 22:01:35 -03:00
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2023-02-24 11:59:17 -03:00
}