From 413cc67a4ac284f94d97cc38e8beb2a004b3bd98 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Thu, 29 May 2025 17:41:44 +0800 Subject: [PATCH] chore: remove alias-for-work.bash --- home/base/tui/shell.nix | 12 ------------ secrets/darwin.nix | 9 --------- secrets/nixos.nix | 10 ---------- 3 files changed, 31 deletions(-) diff --git a/home/base/tui/shell.nix b/home/base/tui/shell.nix index e644cff7..cb2fce4d 100644 --- a/home/base/tui/shell.nix +++ b/home/base/tui/shell.nix @@ -5,18 +5,6 @@ }: let inherit (pkgs-unstable) nu_scripts; in { - programs.bash = { - # load the alias file for work - bashrcExtra = '' - alias_for_work=/etc/agenix/alias-for-work.bash - if [ -f $alias_for_work ]; then - . $alias_for_work - else - echo "No alias file found for work" - fi - ''; - }; - programs.nushell = { # load the alias file for work # the file must exist, otherwise nushell will complain about it! diff --git a/secrets/darwin.nix b/secrets/darwin.nix index b76d666d..d650d447 100644 --- a/secrets/darwin.nix +++ b/secrets/darwin.nix @@ -90,12 +90,6 @@ file = "${mysecrets}/alias-for-work.nushell.age"; } // user_readable; - - "alias-for-work.bash" = - { - file = "${mysecrets}/alias-for-work.bash.age"; - } - // user_readable; }; # place secrets in /etc/ @@ -125,9 +119,6 @@ "agenix/alias-for-work.nushell" = { source = config.age.secrets."alias-for-work.nushell".path; }; - "agenix/alias-for-work.bash" = { - source = config.age.secrets."alias-for-work.bash".path; - }; }; # both the original file and the symlink should be readable and executable by the user diff --git a/secrets/nixos.nix b/secrets/nixos.nix index 5bc5983d..b9fcd732 100644 --- a/secrets/nixos.nix +++ b/secrets/nixos.nix @@ -138,12 +138,6 @@ in { file = "${mysecrets}/alias-for-work.nushell.age"; } // user_readable; - - "alias-for-work.bash" = - { - file = "${mysecrets}/alias-for-work.bash.age"; - } - // user_readable; }; # place secrets in /etc/ @@ -174,10 +168,6 @@ in { source = config.age.secrets."alias-for-work.nushell".path; mode = "0644"; # both the original file and the symlink should be readable and executable by the user }; - "agenix/alias-for-work.bash" = { - source = config.age.secrets."alias-for-work.bash".path; - mode = "0644"; # both the original file and the symlink should be readable and executable by the user - }; }; })