fix deploy script path
This commit is contained in:
parent
d31ba40683
commit
6faa8eea0d
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@
|
||||||
type = "app";
|
type = "app";
|
||||||
program = toString (pkgs.writeScript "deploy" ''
|
program = toString (pkgs.writeScript "deploy" ''
|
||||||
#!${pkgs.runtimeShell}
|
#!${pkgs.runtimeShell}
|
||||||
nixos-rebuild switch --upgrade --flake ".#$1" --target-host "$1.dadada.li" --build-host localhost --use-remote-sudo
|
domain='dadada.li'
|
||||||
|
flake=$(nix flake metadata --json ${./.} | jq -r .url)
|
||||||
|
nixos-rebuild switch --upgrade --flake "''${flake}#$1" --target-host "''${1}.$domain" --build-host localhost --use-remote-sudo
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
apps.hm-switch = {
|
apps.hm-switch = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue