Move shellAliases definition from scripts -> shell

This commit is contained in:
Evie Litherland-Smith 2024-09-22 11:47:34 +01:00
parent ead63d4d21
commit fa8c2126f8
2 changed files with 17 additions and 17 deletions

View file

@ -1,15 +1,9 @@
{ 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";
};
};
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))
];
}

View file

@ -10,11 +10,17 @@
./ssh.nix
./starship.nix
];
home.packages = with pkgs; [
rclone
git-sync
du-dust
];
home = {
packages = with pkgs; [
rclone
git-sync
du-dust
];
shellAliases = {
protonup = "sudo wg-quick up protonvpn && sudo wg";
protondown = "sudo wg-quick down protonvpn";
};
};
programs = {
bash.enable = true;
carapace.enable = true;