summaryrefslogtreecommitdiff
path: root/hosts/laptop/hardware-configuration.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-20 23:52:35 +0100
committeradikro <adikro@disroot.org>2025-12-20 23:52:35 +0100
commitf0acd5c32d4e46cd3ad6fc1b848e9bf325a6d3f5 (patch)
tree918c195140fd06a1bc36030c0c81e68b7739e377 /hosts/laptop/hardware-configuration.nix
parent9b3418c0c0ae4c945c51430fd59956e7ad8bd90e (diff)
installed nixos on the laptop host, updated disko
Diffstat (limited to 'hosts/laptop/hardware-configuration.nix')
-rw-r--r--hosts/laptop/hardware-configuration.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/hosts/laptop/hardware-configuration.nix b/hosts/laptop/hardware-configuration.nix
new file mode 100644
index 0000000..5e029fd
--- /dev/null
+++ b/hosts/laptop/hardware-configuration.nix
@@ -0,0 +1,18 @@
+# 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" "ahci" "usb_storage" "sd_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-amd" ];
+ boot.extraModulePackages = [ ];
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}