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

View file

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