From ff6a759f182b78ceeb4c129fd9ec515aca4e9b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 31 Oct 2021 12:49:09 +0100 Subject: [PATCH] Show what is happening --- flake.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 9e6b81cf..3387e351 100644 --- a/flake.nix +++ b/flake.nix @@ -136,7 +136,7 @@ # remote machine and bulding and switching there. # Can be run with `nix run c3d2#…-nixos-rebuild switch` "${name}-nixos-rebuild" = pkgs.writeScriptBin "${name}-nixos-rebuild" '' - #!${pkgs.runtimeShell} -e + #!${pkgs.runtimeShell} -ex [[ $(ssh ${target} cat /etc/hostname) == ${name} ]] nix copy --to ssh://${target} ${secrets} nix copy --to ssh://${target} ${self} @@ -144,14 +144,14 @@ ''; "${name}-nixos-rebuild-local" = pkgs.writeScriptBin "${name}-nixos-rebuild" '' - #!${pkgs.runtimeShell} -e + #!${pkgs.runtimeShell} -ex [[ $(ssh ${target} cat /etc/hostname) == ${name} ]] nix copy --to ssh://${target} ${profile} ssh ${target} "${profile}/bin/switch-to-configuration $*" ''; "${name}-cleanup" = pkgs.writeScriptBin "${name}-cleanup" '' - #!${pkgs.runtimeShell} -e + #!${pkgs.runtimeShell} -ex ssh ${target} "time nix-collect-garbage -d && time nix-store --optimise" ''; }) {} (builtins.attrNames flakifiedHosts) //