diff --git a/home/scripts/default.nix b/home/scripts/default.nix index 74a264a8..aa8df729 100644 --- a/home/scripts/default.nix +++ b/home/scripts/default.nix @@ -6,8 +6,14 @@ (pkgs.writeShellScriptBin "rsync-local-config" (builtins.readFile ./shell/rsync-local-config.sh)) (pkgs.writeShellScriptBin "xdg-query-program" (builtins.readFile ./shell/xdg-query-program.sh)) ]; - shellAliases = { - gsa = "git-sync-all"; - }; + shellAliases = + let + sync = "sudo systemctl start nixos-upgrade.service && git-sync-all"; + in + { + gsa = "git-sync-all"; + sync-and-shutdown = sync + " && shutdown now"; + sync-and-reboot = sync + " && reboot"; + }; }; }