flake: pass CLI arguments into nixos-rebuild when running deploy-moby-X
This commit is contained in:
@@ -241,9 +241,9 @@
|
|||||||
let
|
let
|
||||||
pkgs = self.legacyPackages."x86_64-linux";
|
pkgs = self.legacyPackages."x86_64-linux";
|
||||||
deployScript = action: pkgs.writeShellScript "deploy-moby" ''
|
deployScript = action: pkgs.writeShellScript "deploy-moby" ''
|
||||||
nixos-rebuild --flake '.#cross-moby' build
|
nixos-rebuild --flake '.#moby' build $@
|
||||||
sudo nix sign-paths -r -k /run/secrets/nix_serve_privkey $(readlink ./result)
|
sudo nix sign-paths -r -k /run/secrets/nix_serve_privkey $(readlink ./result)
|
||||||
nixos-rebuild --flake '.#cross-moby' ${action} --target-host colin@moby --use-remote-sudo
|
nixos-rebuild --flake '.#moby' ${action} --target-host colin@moby --use-remote-sudo $@
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
update-feeds = {
|
update-feeds = {
|
||||||
|
Reference in New Issue
Block a user