69 lines
1.9 KiB
Nix
69 lines
1.9 KiB
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports =
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
"nvme"
|
|
"uhci_hcd"
|
|
"ehci_hcd"
|
|
"ehci_pci"
|
|
"ohci_hcd"
|
|
"ohci_pci"
|
|
"xhci_hcd"
|
|
"xhci_pci"
|
|
"sdhci_pci"
|
|
"vfat"
|
|
"nls_cp437"
|
|
"nls_iso8859-1"
|
|
];
|
|
boot.initrd.kernelModules = [
|
|
"usbhid"
|
|
"hid_generic" "hid_lenovo" "hid_apple" "hid_roccat"
|
|
"hid_logitech_hidpp" "hid_logitech_dj" "hid_microsoft" "hid_cherry"
|
|
"pcips2" "atkbd" "i8042"
|
|
"rtc_cmos"
|
|
];
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
fileSystems."/" =
|
|
{ device = "/dev/disk/by-uuid/ea402301-d29d-4e6c-a72b-f1132051a23e";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
boot.initrd.luks = {
|
|
yubikeySupport = true;
|
|
devices."luks-09c74bcb-f82c-405d-b938-2c4e6c3c8a54" = {
|
|
device = "/dev/disk/by-uuid/09c74bcb-f82c-405d-b938-2c4e6c3c8a54";
|
|
yubikey = {
|
|
slot = 2;
|
|
twoFactor = false;
|
|
storage = {
|
|
device = "/dev/disk/by-uuid/7694-405E";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
fileSystems."/boot" =
|
|
{ device = "/dev/disk/by-uuid/7694-405E";
|
|
fsType = "vfat";
|
|
};
|
|
|
|
swapDevices = [ ];
|
|
|
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
|
# still possible to use this option, but it's recommended to use it in conjunction
|
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
|
networking.useDHCP = lib.mkDefault true;
|
|
# networking.interfaces.enp4s0f3u1u3c2.useDHCP = lib.mkDefault true;
|
|
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
}
|