nixos/system/home/scripts/default.nix
Evie Litherland-Smith 3e15c478eb Add shellAliases back
Add alias to start and stop protonvpn (wg-quick)
2024-09-22 11:30:15 +01:00

16 lines
558 B
Nix

{ pkgs, ... }:
{
home = {
packages = [
(pkgs.writeShellScriptBin "esync" (builtins.readFile ./shell/esync.sh))
(pkgs.writeShellScriptBin "gsync" (builtins.readFile ./shell/gsync.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))
];
shellAliases = {
protonup = "sudo wg-quick up protonvpn && sudo wg";
protondown = "sudo wg-quick down protonvpn";
};
};
}