From b75e42ab0a63d61894ab1718d1d413ec5928a5d6 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 6 Mar 2024 15:52:12 +0100 Subject: [PATCH] use `host` variable Signed-off-by: Harald Hoyer --- systems/x86_64-linux/sgx/default.nix | 4 ++-- systems/x86_64-linux/x1/default.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/systems/x86_64-linux/sgx/default.nix b/systems/x86_64-linux/sgx/default.nix index 24f31e8..0f2b75a 100644 --- a/systems/x86_64-linux/sgx/default.nix +++ b/systems/x86_64-linux/sgx/default.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, config, ... }: +{ pkgs, lib, config, host, ... }: with lib; with lib.plusultra; { @@ -26,7 +26,7 @@ with lib.plusultra; "--update-input" "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. diff --git a/systems/x86_64-linux/x1/default.nix b/systems/x86_64-linux/x1/default.nix index a63875f..0ce80d4 100644 --- a/systems/x86_64-linux/x1/default.nix +++ b/systems/x86_64-linux/x1/default.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, ... }: +{ pkgs, lib, host, ... }: with lib; with lib.plusultra; { @@ -24,7 +24,7 @@ with lib.plusultra; "--update-input" "unstable" ]; - flake = "git+https://git.hoyer.xyz/harald/nixcfg#x1"; + flake = "git+https://git.hoyer.xyz/harald/nixcfg#${host}"; }; system.stateVersion = "23.11";