it-infra/nixops/juno-hardware-configuration.nix

33 lines
813 B
Nix
Raw Normal View History

2020-06-20 17:54:21 +08:00
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
2022-06-17 12:48:08 +08:00
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sr_mod" "nvme" ];
2020-06-20 17:54:21 +08:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2022-06-17 12:48:08 +08:00
{ device = "/dev/disk/by-uuid/f944873e-3dcf-4682-8793-fe14eab6b1ed";
2020-06-20 17:54:21 +08:00
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/88F6-46F2";
fsType = "vfat";
};
swapDevices = [ ];
nix.maxJobs = lib.mkDefault 8;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
boot.loader.systemd-boot.enable = true;
2020-06-20 17:54:21 +08:00
boot.loader.efi.canTouchEfiVariables = true;
2021-10-31 16:09:08 +08:00
system.stateVersion = "19.03";
2020-06-20 17:54:21 +08:00
}