From 5ff4a2c3a4d66fa4a9bd6a1fa827acd88f0b12b0 Mon Sep 17 00:00:00 2001 From: Victor Date: Sun, 21 Aug 2022 11:51:49 +0200 Subject: [PATCH] apply-local script --- flake.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 6a48d7d..598b602 100644 --- a/flake.nix +++ b/flake.nix @@ -71,7 +71,13 @@ VAULT_ADDR = "http://vault.olympus:8200/"; # This only support bash so just execute zsh in bash as a workaround :/ shellHook = "zsh; exit $?"; - buildInputs = with pkgs; [ + buildInputs = with pkgs; let + apply-local = pkgs.writeScriptBin "apply-local" '' + #!${pkgs.stdenv.shell} + "${colmena.packages.x86_64-linux.colmena}"/bin/colmena apply-local --sudo --node "$(cat /proc/sys/kernel/hostname).$(cat /proc/sys/kernel/domainname)" + ''; + in + [ colmena.packages.x86_64-linux.colmena fluxcd k9s