Files
nixos-config/nixos-configurations/pc/hardware-configuration.nix

53 lines
1.5 KiB
Nix
Raw Normal View History

2023-03-27 12:44:37 +02: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-08-07 11:31:13 +02:00
{
config,
lib,
pkgs,
modulesPath,
...
}:
2023-03-27 12:44:37 +02:00
{
2024-08-07 11:31:13 +02:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2023-03-27 12:44:37 +02:00
2024-08-07 11:31:13 +02:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usb_storage"
"usbhid"
"sd_mod"
];
2023-03-27 12:44:37 +02:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
2024-08-07 11:31:13 +02:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/9e4f1090-bb46-4fd8-9a2d-e053c08af7d0";
fsType = "ext4";
};
2023-03-27 12:44:37 +02:00
2024-08-07 11:31:13 +02:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/D4D5-F5A5";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
2024-08-07 07:11:42 +00:00
];
2024-08-07 11:31:13 +02:00
};
swapDevices = [ { device = "/dev/disk/by-uuid/54590048-bdf2-4faa-8176-f6e1d582c357"; } ];
2023-03-27 12:44:37 +02: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;
2023-07-21 16:55:20 +00:00
# networking.interfaces.enp9s0.useDHCP = lib.mkDefault true;
2023-03-27 12:44:37 +02:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2024-08-07 07:11:42 +00:00
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2023-03-27 12:44:37 +02:00
}