diff options
| author | Mathias Magnusson <mathias@magnusson.space> | 2025-10-26 11:10:16 +0100 |
|---|---|---|
| committer | Mathias Magnusson <mathias@magnusson.space> | 2025-10-26 11:10:16 +0100 |
| commit | 5fc9c83c37308d1865d9e89f7550b479dcb0cb7e (patch) | |
| tree | 298d627e84be3a5bcba411de775cf64bfd5a4ebf /flake.nix | |
| parent | 5a3dcbe207323690143fff0f1ebeb4a28f2acfc6 (diff) | |
| download | oden-5fc9c83c37308d1865d9e89f7550b479dcb0cb7e.tar.gz | |
allow deploy script to performactions other than switch
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: { |
