dotfiles/nixos/boxes/skinnyv/hardware-configuration.nix

41 lines
936 B
Nix
Raw Normal View History

2021-04-11 12:15:39 +01:00
{ config, lib, pkgs, modulesPath, ... }:
2021-02-28 14:23:28 +00:00
{
2022-03-10 12:25:23 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2021-02-28 14:23:28 +00:00
2022-03-10 12:25:23 +00:00
boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
2021-04-11 12:15:39 +01:00
boot.initrd.kernelModules = [ ];
2021-02-28 14:23:28 +00:00
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2021-06-12 11:09:46 +01:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/9dba116f-c9fe-403a-a8e2-f9fdab23f1f1";
fsType = "btrfs";
options = [ "compress=zstd" ];
};
2021-02-28 14:23:28 +00:00
2022-03-10 12:25:23 +00:00
boot.initrd.luks.devices."crypt".device =
"/dev/disk/by-uuid/0c192a18-178f-4598-a1ed-5295ef2abdc4";
2021-02-28 14:23:28 +00:00
2021-06-12 11:09:46 +01:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/0A6A-AAFC";
fsType = "vfat";
};
2021-02-28 14:23:28 +00:00
2022-06-18 17:50:20 +01:00
swapDevices = [{
device = "/swapfile";
size = 16 * 1024;
priority = 1;
}];
2021-04-11 12:15:39 +01:00
2021-06-12 11:09:46 +01:00
zramSwap = {
enable = true;
algorithm = "zstd";
2022-06-18 17:50:20 +01:00
memoryPercent = 25;
priority = 10;
2021-06-12 11:09:46 +01:00
};
2021-04-11 12:15:39 +01:00
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}