Add shellAliases to sync and either shutdown or reboot

This commit is contained in:
Evie Litherland-Smith 2024-08-19 07:13:46 +01:00
parent 1ea8fb989c
commit eba012003c

View file

@ -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 = {
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";
};
};
}