-
Notifications
You must be signed in to change notification settings - Fork 8
/
hardware-configuration.nix##hostname.nipsu
47 lines (41 loc) · 1.29 KB
/
hardware-configuration.nix##hostname.nipsu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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>
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems = {
"/" = {
device = "/dev/mapper/luks-nixos-root";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/C044-3885";
fsType = "vfat";
};
"/var/lib" = {
device = "/dev/mapper/luks-nixos-var";
fsType = "ext4";
};
};
boot.initrd.luks.devices = {
"luks-nixos-root" = {
device = "/dev/disk/by-uuid/a7561bd1-f3ef-4f4d-ab3b-69121e64689f";
};
"luks-nixos-var" = {
device = "/dev/vg-nixos-var/lv-nixos-var";
# luks-nixos-var is contained inside an LVM so it needs to be opened after
# LVM has been activated
preLVM = false;
};
};
swapDevices = [ ];
nix.settings.max-jobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}