moves hardware config to original pre-generated location

This commit is contained in:
2024-11-02 19:36:28 +01:00
parent 64f8ea8609
commit 4c64a52449
4 changed files with 7 additions and 110 deletions

View File

@ -6,24 +6,8 @@
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"usbhid"
"usb_storage"
"sd_mod"
"amdgpu"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/2d20c53e-5ccd-4d67-b084-24ec5c6b2917";
fsType = "ext4";
};
imports = [ /etc/nixos/hardware-configuration.nix ];
networking.hostName = "mennos-server";
# Enable OpenGL
hardware.opengl = {
@ -63,14 +47,4 @@
# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
# 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.hostName = "mennos-server";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}