{ config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = [ "nvme" "vfat" "nls-cp437" "nls-iso8859-1" "sdhci" "sdhci-pci" "cqhci" "mmc-block" ]; boot.initrd.kernelModules = [ "usbcore" "usbhid" "hid-generic" "hid-lenovo" "hid-apple" "hid-roccat" "hid-logitech-hidpp" "hid-logitech_dj" "hid-microsoft" "hid-cherry" "pcips2" "atkbd" "i8042" "rtc-cmos" # Touch "hid-multitouch" "i2c-designware-core" "i2c-designware-platform" "i2c-hid-acpi" ]; 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..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; }