From 7db7982b41e62d427d9a7bc461ff978b1e23f3ca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= <dev@felschr.com>
Date: Fri, 6 Jun 2025 16:53:06 +0200
Subject: [PATCH] refactor: move NixOS hardware configs from hardware/ to
 hosts/<host>/

---
 hosts/flake-module.nix                                    | 4 ++--
 hardware/home-pc.nix => hosts/home-pc/hardware.nix        | 1 -
 hardware/lattepanda.nix => hosts/home-server/hardware.nix | 0
 3 files changed, 2 insertions(+), 3 deletions(-)
 rename hardware/home-pc.nix => hosts/home-pc/hardware.nix (99%)
 rename hardware/lattepanda.nix => hosts/home-server/hardware.nix (100%)

diff --git a/hosts/flake-module.nix b/hosts/flake-module.nix
index 02aa847..a762134 100644
--- a/hosts/flake-module.nix
+++ b/hosts/flake-module.nix
@@ -17,7 +17,7 @@
           inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
           inputs.nixos-hardware.nixosModules.common-gpu-amd
           (self.lib.createSystemModule "home-pc" {
-            hardwareConfig = ../hardware/home-pc.nix;
+            hardwareConfig = ../hosts/home-pc/hardware.nix;
             config = ../hosts/home-pc/default.nix;
           })
           self.lib.createMediaGroup
@@ -57,7 +57,7 @@
           inputs.nixos-hardware.nixosModules.common-gpu-intel-kaby-lake
           inputs.matrix-appservices.nixosModule
           (self.lib.createSystemModule "home-server" {
-            hardwareConfig = ../hardware/lattepanda.nix;
+            hardwareConfig = ../hosts/home-server/hardware.nix;
             config = ../hosts/home-server/default.nix;
           })
           self.lib.createMediaGroup
diff --git a/hardware/home-pc.nix b/hosts/home-pc/hardware.nix
similarity index 99%
rename from hardware/home-pc.nix
rename to hosts/home-pc/hardware.nix
index 9c7f0e8..3704143 100644
--- a/hardware/home-pc.nix
+++ b/hosts/home-pc/hardware.nix
@@ -22,6 +22,5 @@
   boot.kernelModules = [ "kvm-amd" ];
   boot.extraModulePackages = [ ];
 
-
   hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
 }
diff --git a/hardware/lattepanda.nix b/hosts/home-server/hardware.nix
similarity index 100%
rename from hardware/lattepanda.nix
rename to hosts/home-server/hardware.nix