46 lines
1.3 KiB
Nix
46 lines
1.3 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, modulesPath, ... }:
|
|||
|
|
|||
|
{
|
|||
|
imports =
|
|||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|||
|
];
|
|||
|
|
|||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" "rtsx_pci_sdmmc" "vfat" "nls_cp437" "nls_iso8859-1" ];
|
|||
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|||
|
boot.kernelModules = [ "kvm-intel" ];
|
|||
|
boot.extraModulePackages = [ ];
|
|||
|
|
|||
|
fileSystems."/" =
|
|||
|
{ device = "/dev/disk/by-uuid/bf44b13d-47d1-4f27-8dc5-c11e48052496";
|
|||
|
fsType = "ext4";
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/boot" =
|
|||
|
{ device = "/dev/disk/by-uuid/0839-8A0F";
|
|||
|
fsType = "vfat";
|
|||
|
};
|
|||
|
|
|||
|
swapDevices = [ ];
|
|||
|
|
|||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|||
|
boot.initrd.luks.yubikeySupport = true;
|
|||
|
|
|||
|
# Configuration to use your Luks device
|
|||
|
boot.initrd.luks.devices = {
|
|||
|
"partitions" = {
|
|||
|
device = "/dev/sda2";
|
|||
|
preLVM = true; # You may want to set this to false if you need to start a network service first
|
|||
|
yubikey = {
|
|||
|
slot = 2;
|
|||
|
twoFactor = true; # Set to false if you did not set up a user password.
|
|||
|
storage = {
|
|||
|
device = "/dev/sda1";
|
|||
|
};
|
|||
|
};
|
|||
|
};
|
|||
|
};
|
|||
|
}
|