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

40 lines
1.4 KiB
Nix
Raw Normal View History

2023-07-24 12:21: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.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
2023-08-04 08:12:40 +00:00
[ (modulesPath + "/installer/scan/not-detected.nix")
2023-07-24 12:21:57 +00:00
];
2023-08-04 08:12:40 +00:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "uas" "sd_mod" ];
2023-07-24 12:21:57 +00:00
boot.initrd.kernelModules = [ ];
2023-08-04 08:12:40 +00:00
boot.kernelModules = [ "kvm-amd" ];
2023-07-24 12:21:57 +00:00
boot.extraModulePackages = [ ];
fileSystems."/" =
2023-08-05 16:37:51 +02:00
{ device = "/dev/disk/by-uuid/dcdb168a-5174-4ac4-85eb-34710a45677f";
2023-08-04 08:12:40 +00:00
fsType = "ext4";
2023-07-24 12:21:57 +00:00
};
fileSystems."/boot" =
2023-08-05 16:37:51 +02:00
{ device = "/dev/disk/by-uuid/BB9B-7648";
2023-07-24 12:21:57 +00:00
fsType = "vfat";
};
2023-08-04 08:12:40 +00:00
swapDevices =
2023-08-05 16:37:51 +02:00
[ { device = "/dev/disk/by-uuid/c0c90247-71f1-456a-8303-ac1ee72a8562"; }
2023-08-04 08:12:40 +00:00
];
2023-07-24 12:21: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;
2023-08-04 08:12:40 +00:00
# networking.interfaces.enp8s0.useDHCP = lib.mkDefault true;
2023-07-24 12:21:57 +00:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2023-08-04 08:12:40 +00:00
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2023-07-24 12:21:57 +00:00
}