From 33c407edb358cf57bab51f5cd0a7fbdba3cbef4b Mon Sep 17 00:00:00 2001 From: randomuser Date: Fri, 7 Jul 2023 19:09:12 -0500 Subject: [PATCH] split hardware configs into hardware-config directory --- configuration.nix | 5 +++-- .../qemu-virt-manager.nix | 0 2 files changed, 3 insertions(+), 2 deletions(-) rename hardware-configuration.nix => hardware-config/qemu-virt-manager.nix (100%) diff --git a/configuration.nix b/configuration.nix index 5876508..ffc3214 100644 --- a/configuration.nix +++ b/configuration.nix @@ -5,18 +5,19 @@ let url = "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz"; sha256 = "0dfshsgj93ikfkcihf4c5z876h4dwjds998kvgv7sqbfv0z6a4bc"; }; + hostname = "virtbox"; in { imports = [ - ./hardware-configuration.nix + (import "./hardware-config/${hostname}.nix") (import "${home-manager}/nixos") ]; boot.loader.grub.enable = true; boot.loader.grub.device = "/dev/vda"; - networking.hostName = "virtbox"; # Define your hostname. + networking.hostName = hostname; # Define your hostname. networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. time.timeZone = "America/Chicago"; diff --git a/hardware-configuration.nix b/hardware-config/qemu-virt-manager.nix similarity index 100% rename from hardware-configuration.nix rename to hardware-config/qemu-virt-manager.nix