nixos/hosts/gunter/hardware-configuration.nix

55 lines
1.7 KiB
Nix
Raw Normal View History

2024-03-02 13:59:57 +00:00
# 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.
{
2024-07-17 20:22:04 +00:00
config,
lib,
pkgs,
modulesPath,
...
}:
2024-03-02 13:59:57 +00:00
2024-07-17 20:22:04 +00:00
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
2024-03-02 13:59:57 +00:00
boot.initrd.kernelModules = [ ];
2024-07-17 20:22:04 +00:00
boot.kernelModules = [
"kvm-amd"
"v4l2loopback"
2024-03-05 00:22:53 +00:00
];
2024-07-17 20:22:04 +00:00
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
2024-03-02 13:59:57 +00:00
2024-07-17 20:22:04 +00:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/a7d4b697-fffa-4bcb-9dd7-cbbd6121a50c";
fsType = "xfs";
};
2024-03-02 13:59:57 +00:00
boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/be82b184-3cc7-483b-9069-f7797f51c853";
2024-07-17 20:22:04 +00:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/DC0C-AAB3";
fsType = "vfat";
};
2024-03-02 13:59:57 +00:00
2024-07-17 20:22:04 +00:00
swapDevices = [ { device = "/dev/disk/by-uuid/2284e9c6-c168-4d4f-ba6a-d270f1ae245d"; } ];
2024-03-02 13:59:57 +00:00
# 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.enp12s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp13s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}