Set hostname in host module.

This commit is contained in:
2023-06-30 10:29:30 +01:00
parent 78400d9265
commit c5f43030aa
2 changed files with 5 additions and 5 deletions

View File

@@ -10,13 +10,13 @@
outputs = { self, nixpkgs, deploy-rs, ... }@inputs:
let
mkNixos = hostname: modules: nixpkgs.lib.nixosSystem {
mkNixos = modules: nixpkgs.lib.nixosSystem {
inherit modules;
specialArgs = { inherit inputs hostname; };
specialArgs = { inherit inputs; };
};
in {
nixosConfigurations = {
c1 = mkNixos "c1" [ ./hosts/c1 ];
c1 = mkNixos [ ./hosts/c1 ];
};
deploy = {