Add shellAliases to sync and either shutdown or reboot
This commit is contained in:
parent
1ea8fb989c
commit
eba012003c
|
@ -6,8 +6,14 @@
|
||||||
(pkgs.writeShellScriptBin "rsync-local-config" (builtins.readFile ./shell/rsync-local-config.sh))
|
(pkgs.writeShellScriptBin "rsync-local-config" (builtins.readFile ./shell/rsync-local-config.sh))
|
||||||
(pkgs.writeShellScriptBin "xdg-query-program" (builtins.readFile ./shell/xdg-query-program.sh))
|
(pkgs.writeShellScriptBin "xdg-query-program" (builtins.readFile ./shell/xdg-query-program.sh))
|
||||||
];
|
];
|
||||||
shellAliases = {
|
shellAliases =
|
||||||
gsa = "git-sync-all";
|
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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue