From d4154b8c9395ec644d8e27967d83c6f3a0e7b7b0 Mon Sep 17 00:00:00 2001 From: chase Date: Wed, 14 May 2025 16:27:54 -0400 Subject: [PATCH] Modular hardware-configuration --- configuration.nix | 5 ----- flake.nix | 1 + .../anzu/hardware-configuration.nix | 0 3 files changed, 1 insertion(+), 5 deletions(-) rename hardware-configuration.nix => hosts/anzu/hardware-configuration.nix (100%) diff --git a/configuration.nix b/configuration.nix index 99caad9..ea1a079 100644 --- a/configuration.nix +++ b/configuration.nix @@ -5,11 +5,6 @@ { config, pkgs, lib, ... }: { - imports = - [ # Include the results of the hardware scan. - ./hardware-configuration.nix - ]; - # Bootloader. boot.loader.systemd-boot = { enable = true; diff --git a/flake.nix b/flake.nix index dd3d18c..aec53df 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,7 @@ # Import the previous configuration.nix we used, # so the old configuration file still takes effect ./configuration.nix + ./hosts/anzu/hardware-configuration.nix # Add NUR overlay nur.modules.nixos.default # Add home-manager diff --git a/hardware-configuration.nix b/hosts/anzu/hardware-configuration.nix similarity index 100% rename from hardware-configuration.nix rename to hosts/anzu/hardware-configuration.nix