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

46 lines
1.3 KiB
Nix
Raw Normal View History

2021-02-28 14:23:28 +00:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
2021-02-28 14:26:18 +00:00
];
2021-02-28 14:23:28 +00:00
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2021-02-28 14:26:18 +00:00
boot.initrd.luks.devices = {
root =
{
device = "/dev/disk/by-uuid/ef6e91d9-c477-4ab7-ae39-4a0ee413cebe";
preLVM = true;
allowDiscards = true;
};
};
boot.loader.grub = {
device = "nodev";
efiSupport = true;
};
boot.loader.efi.canTouchEfiVariables = true;
2021-02-28 14:23:28 +00:00
2021-02-28 14:26:18 +00:00
fileSystems."/" =
{ device = "/dev/disk/by-uuid/0c1df18e-df45-4290-8887-6529d00ccb9d";
fsType = "ext4";
};
2021-02-28 14:23:28 +00:00
2021-02-28 14:26:18 +00:00
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/3246-8612";
fsType = "vfat";
};
2021-02-28 14:23:28 +00:00
2021-02-28 14:26:18 +00:00
swapDevices =
[ { device = "/dev/disk/by-uuid/e2b3e3b9-aa1f-47dc-8585-f8e035590c41"; }
];
2021-02-28 14:23:28 +00:00
2021-02-28 14:26:18 +00:00
nix.maxJobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}