1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/systems/zaatar/hardware-configuration.nix

25 lines
643 B
Nix
Raw Normal View History

2020-06-10 17:37:25 +02:00
{ config, lib, pkgs, ... }: {
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
2019-01-30 17:08:07 +01:00
2020-06-10 17:37:25 +02:00
boot.initrd.availableKernelModules =
[ "ahci" "xhci_pci" "usb_storage" "sd_mod" "sdhci_acpi" "rtsx_usb_sdmmc" ];
2019-01-30 17:08:07 +01:00
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2020-06-10 17:37:25 +02:00
fileSystems."/" = {
2020-10-28 20:29:41 +01:00
device = "/dev/disk/by-label/nixos";
2020-06-10 17:37:25 +02:00
fsType = "ext4";
};
2019-01-30 17:08:07 +01:00
2020-06-10 17:37:25 +02:00
fileSystems."/boot" = {
2020-10-28 20:29:41 +01:00
device = "/dev/disk/by-label/boot";
2020-06-10 17:37:25 +02:00
fsType = "vfat";
};
2019-01-30 17:08:07 +01:00
swapDevices =
2020-10-28 20:29:41 +01:00
[{ device = "/dev/disk/by-label/swap"; }];
2019-01-30 17:08:07 +01:00
nix.maxJobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}