use host variable

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-03-06 15:52:12 +01:00
parent 4e031e5dd5
commit b75e42ab0a
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }: { pkgs, lib, config, host, ... }:
with lib; with lib;
with lib.plusultra; with lib.plusultra;
{ {
@ -26,7 +26,7 @@ with lib.plusultra;
"--update-input" "--update-input"
"unstable" "unstable"
]; ];
flake = "git+https://git.hoyer.xyz/harald/nixcfg#sgx"; flake = "git+https://git.hoyer.xyz/harald/nixcfg#${host}";
}; };
networking.hostName = "sgx"; # Define your hostname. networking.hostName = "sgx"; # Define your hostname.

View file

@ -1,4 +1,4 @@
{ pkgs, lib, ... }: { pkgs, lib, host, ... }:
with lib; with lib;
with lib.plusultra; with lib.plusultra;
{ {
@ -24,7 +24,7 @@ with lib.plusultra;
"--update-input" "--update-input"
"unstable" "unstable"
]; ];
flake = "git+https://git.hoyer.xyz/harald/nixcfg#x1"; flake = "git+https://git.hoyer.xyz/harald/nixcfg#${host}";
}; };
system.stateVersion = "23.11"; system.stateVersion = "23.11";