nix: fix switch command
authorJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Sat, 23 Oct 2021 18:15:04 +0000 (20:15 +0200)
committerJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Sat, 23 Oct 2021 18:15:04 +0000 (20:15 +0200)
flake.nix

index 6c029788f497c10b2109c6d68ba096963a865cab..2fb818841bf0da5920e84d3aca61732d8fca3a01 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -135,10 +135,12 @@ outputs = inputs: let
           # Send the Wireguard key of the initrd
           gpg --decrypt '${config.security.gnupg.store}/wireguard/wg-intra/privateKey.gpg' |
           ssh ${target} install -D -m 400 -o root -g root /dev/stdin /root/initrd/wg-intra.key
+          '' + ''
           ssh ${target} \
             nix-env --profile '${profile}' --set '${build.toplevel}' '&&' \
             '${profile}'/bin/switch-to-configuration switch
-        '')).outPath;
+          ''
+        )).outPath;
       };
       # Example: nix run .#carotte.install-sd
       "install-sd" = {