diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: { |
