split hardware configs into hardware-config directory

This commit is contained in:
randomuser 2023-07-07 19:09:12 -05:00
parent 8276988e17
commit 33c407edb3
2 changed files with 3 additions and 2 deletions

View File

@ -5,18 +5,19 @@ let
url = "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz"; url = "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz";
sha256 = "0dfshsgj93ikfkcihf4c5z876h4dwjds998kvgv7sqbfv0z6a4bc"; sha256 = "0dfshsgj93ikfkcihf4c5z876h4dwjds998kvgv7sqbfv0z6a4bc";
}; };
hostname = "virtbox";
in in
{ {
imports = imports =
[ [
./hardware-configuration.nix (import "./hardware-config/${hostname}.nix")
(import "${home-manager}/nixos") (import "${home-manager}/nixos")
]; ];
boot.loader.grub.enable = true; boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda"; 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. networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
time.timeZone = "America/Chicago"; time.timeZone = "America/Chicago";