nixos/home/scripts/default.nix

20 lines
621 B
Nix
Raw Normal View History

2024-07-30 15:06:34 +01:00
{ pkgs, ... }:
{
2024-07-30 06:34:11 +01:00
home = {
packages = [
2024-07-30 15:06:34 +01:00
(pkgs.writeShellScriptBin "git-sync-all" (builtins.readFile ./shell/git-sync-all.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))
2024-07-30 06:34:11 +01:00
];
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";
};
2024-07-30 06:34:11 +01:00
};
}