This commit is contained in:
Tim Schubert 2022-08-22 17:21:10 +02:00
parent c244f45636
commit 7e9b29a502
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA

View file

@ -8,7 +8,8 @@
nixos-rebuild switch --flake ".#$1" --use-remote-sudo
'');
};
apps.deploy = {
deploy = {
type = "app";
program = toString (pkgs.writeScript "deploy" ''
#!${pkgs.runtimeShell}
@ -17,6 +18,7 @@
nixos-rebuild switch --upgrade --flake "''${flake}#$1" --target-host "''${1}.$domain" --build-host localhost --use-remote-sudo
'');
};
hm-switch = {
type = "app";
program = toString (pkgs.writeScript "hm-switch" ''