diff --git a/hosts/test/configuration.nix b/hosts/test/configuration.nix index 10c43b8..4fdb6fb 100644 --- a/hosts/test/configuration.nix +++ b/hosts/test/configuration.nix @@ -4,7 +4,7 @@ { imports = [ - #./hardware-configuration.nix + ./hardware-configuration.nix ../../modules/core ../../modules/networking ../../modules/virtualization diff --git a/hosts/test/hardware-configuration.nix b/hosts/test/hardware-configuration.nix new file mode 100644 index 0000000..c46dced --- /dev/null +++ b/hosts/test/hardware-configuration.nix @@ -0,0 +1,40 @@ +# 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 = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ + "nvme" + "xhci_pci" + "usb_storage" + "sd_mod" + ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/12CE-A600"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" + ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}