nix: Use hosts directory

This may be useful if I want to try NixOS on another host in the future.
This commit is contained in:
Donovan Glover 2023-06-05 21:23:27 -04:00
parent 5cd582cdac
commit a0dae2344d
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
4 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,6 @@
stylix.nixosModules.stylix stylix.nixosModules.stylix
nix-gaming.nixosModules.pipewireLowLatency nix-gaming.nixosModules.pipewireLowLatency
./src/main.nix ./src/main.nix
./hardware-configuration.nix
]; ];
}; };
}; };

View File

@ -8,6 +8,7 @@
VARIABLES = import ./variables.nix; VARIABLES = import ./variables.nix;
in { in {
imports = [ imports = [
"${VARIABLES.hostHardwareConfiguration}"
../modules ../modules
../containers/rar.nix ../containers/rar.nix
../containers/wine.nix ../containers/wine.nix

View File

@ -2,4 +2,5 @@
hostname = "nixos"; hostname = "nixos";
system = "x86_64-linux"; system = "x86_64-linux";
timezone = "America/New_York"; timezone = "America/New_York";
hostHardwareConfiguration = ../hosts/laptop.nix;
} }