mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 09:28:27 +02:00
chore: remove alias-for-work.bash
This commit is contained in:
@@ -5,18 +5,6 @@
|
|||||||
}: let
|
}: let
|
||||||
inherit (pkgs-unstable) nu_scripts;
|
inherit (pkgs-unstable) nu_scripts;
|
||||||
in {
|
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 = {
|
programs.nushell = {
|
||||||
# load the alias file for work
|
# load the alias file for work
|
||||||
# the file must exist, otherwise nushell will complain about it!
|
# the file must exist, otherwise nushell will complain about it!
|
||||||
|
|||||||
@@ -90,12 +90,6 @@
|
|||||||
file = "${mysecrets}/alias-for-work.nushell.age";
|
file = "${mysecrets}/alias-for-work.nushell.age";
|
||||||
}
|
}
|
||||||
// user_readable;
|
// user_readable;
|
||||||
|
|
||||||
"alias-for-work.bash" =
|
|
||||||
{
|
|
||||||
file = "${mysecrets}/alias-for-work.bash.age";
|
|
||||||
}
|
|
||||||
// user_readable;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# place secrets in /etc/
|
# place secrets in /etc/
|
||||||
@@ -125,9 +119,6 @@
|
|||||||
"agenix/alias-for-work.nushell" = {
|
"agenix/alias-for-work.nushell" = {
|
||||||
source = config.age.secrets."alias-for-work.nushell".path;
|
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
|
# both the original file and the symlink should be readable and executable by the user
|
||||||
|
|||||||
@@ -138,12 +138,6 @@ in {
|
|||||||
file = "${mysecrets}/alias-for-work.nushell.age";
|
file = "${mysecrets}/alias-for-work.nushell.age";
|
||||||
}
|
}
|
||||||
// user_readable;
|
// user_readable;
|
||||||
|
|
||||||
"alias-for-work.bash" =
|
|
||||||
{
|
|
||||||
file = "${mysecrets}/alias-for-work.bash.age";
|
|
||||||
}
|
|
||||||
// user_readable;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# place secrets in /etc/
|
# place secrets in /etc/
|
||||||
@@ -174,10 +168,6 @@ in {
|
|||||||
source = config.age.secrets."alias-for-work.nushell".path;
|
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
|
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
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user