62 lines
1.5 KiB
Nix
62 lines
1.5 KiB
Nix
# 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, ... }:
|
||
|
||
{
|
||
boot.initrd.availableKernelModules = [
|
||
"aesni_intel"
|
||
"kvm-intel"
|
||
"aes_x86_64"
|
||
];
|
||
|
||
boot.extraModprobeConfig = ''
|
||
options kvm-intel nested=1
|
||
options kvm-intel enable_shadow_vmcs=1
|
||
options kvm-intel enable_apicv=1
|
||
options kvm-intel ept=1
|
||
'';
|
||
|
||
# TODO: migrate this to the encryptedDisk module
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/445D-DBAA";
|
||
fsType = "vfat";
|
||
};
|
||
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-uuid/948e84dc-5c4f-4051-8a13-efb30155839f";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=nixos" ];
|
||
};
|
||
|
||
fileSystems."/home" = {
|
||
device = "/dev/disk/by-uuid/948e84dc-5c4f-4051-8a13-efb30155839f";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=home" ];
|
||
};
|
||
|
||
fileSystems."/var/lib/rkt" = {
|
||
fsType = "tmpfs";
|
||
};
|
||
|
||
fileSystems."/var/lib/cni" = {
|
||
fsType = "tmpfs";
|
||
};
|
||
|
||
swapDevices = [
|
||
{ label = "vg0swap"; }
|
||
];
|
||
|
||
boot.loader.grub = {
|
||
device = "/dev/sda";
|
||
efiSupport = true;
|
||
};
|
||
|
||
boot.initrd.luks.devices = [ {
|
||
name = "btrfsroot";
|
||
device = "/dev/disk/by-uuid/0e6b5751-0e6d-4de7-84c3-17fe525c4c72";
|
||
preLVM = true;
|
||
allowDiscards = true;
|
||
}
|
||
];
|
||
}
|