nixos/home/scripts/default.nix

16 lines
595 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 = [
(pkgs.writeShellScriptBin "esync" (builtins.readFile ./shell/esync.sh))
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 = {
gsa = "git-sync-all";
sync-and-shutdown = "sudo systemctl start nixos-upgrade.service && git-sync-all && shutdown now";
};
2024-07-30 06:34:11 +01:00
};
}