From 7009fe51a2e0762537b09c141441572a4eeaa141 Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Mon, 13 Apr 2026 14:08:29 +0000 Subject: [PATCH] hardware --- modules/hosts/hermes/configuration.nix | 1 + modules/hosts/hermes/hardware.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 modules/hosts/hermes/hardware.nix diff --git a/modules/hosts/hermes/configuration.nix b/modules/hosts/hermes/configuration.nix index 363e5ff..0959e67 100644 --- a/modules/hosts/hermes/configuration.nix +++ b/modules/hosts/hermes/configuration.nix @@ -28,6 +28,7 @@ in imports = [ inputs.mailserver.nixosModules.default ./disko.nix + ./hardware.nix nixosModules.base nixosModules.zfsRoot nixosModules.luksInitrdSshUnlock diff --git a/modules/hosts/hermes/hardware.nix b/modules/hosts/hermes/hardware.nix new file mode 100644 index 0000000..46c3264 --- /dev/null +++ b/modules/hosts/hermes/hardware.nix @@ -0,0 +1,17 @@ +# 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 + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}