From 5fc9c83c37308d1865d9e89f7550b479dcb0cb7e Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Sun, 26 Oct 2025 11:10:16 +0100 Subject: allow deploy script to performactions other than switch --- flake.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index d9c3509..a56ed31 100644 --- a/flake.nix +++ b/flake.nix @@ -55,7 +55,8 @@ }; packages = forAllSystems (pkgs: { deploy = pkgs.writeShellScriptBin "deploy" '' - nixos-rebuild --flake .#oden switch --target-host oden --build-host oden --use-remote-sudo + [ -n "$1" ] && action="$1" || action="switch" + nixos-rebuild --flake .#oden "$action" --target-host oden --build-host oden --use-remote-sudo ''; }); devShells = forAllSystems (pkgs: { -- cgit v1.2.3