mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 09:48:30 +02:00
fix: secrets for work
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
./development.nix
|
||||
./media.nix
|
||||
./shell.nix
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
17
home/base/desktop/shell.nix
Normal file
17
home/base/desktop/shell.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
{ ... }: {
|
||||
programs.bash = {
|
||||
# load the alias file for work
|
||||
bashrcExtra = ''
|
||||
source /run/agenix/alias-for-work.bash
|
||||
'';
|
||||
};
|
||||
|
||||
programs.nushell = {
|
||||
# load the alias file for work
|
||||
extraConfig = ''
|
||||
source /run/agenix/alias-for-work.nushell
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
@@ -1,11 +1,10 @@
|
||||
{ config, builtins, ... }: {
|
||||
{ ... }: {
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
bashrcExtra = ''
|
||||
export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/go/bin"
|
||||
'';
|
||||
# ++ (builtins.readFile config.age.secrets."alias-for-work.bash".path);
|
||||
|
||||
shellAliases = {
|
||||
k = "kubectl";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ config, builtins, ... }: {
|
||||
{ ... }: {
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
configFile.source = ./config.nu;
|
||||
@@ -9,8 +9,6 @@
|
||||
# envFile.source = ./env.nu;
|
||||
# environmentVariables = { FOO="bar"; };
|
||||
|
||||
# extraConfig = builtins.readFile config.age.secrets."alias-for-work.nushell".path;
|
||||
|
||||
shellAliases = {
|
||||
k = "kubectl";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user