feat: set up env variables
This commit is contained in:
parent
3d99ab6e57
commit
8c19dd84bb
|
@ -1 +1 @@
|
||||||
{ ... }: { imports = [ ./misc.nix ./locale.nix ./git ]; }
|
{ ... }: { imports = [ ./misc.nix ./locale.nix ./git ./shells ]; }
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
with import ../../secrets.nix; {
|
|
||||||
home-manager.users.adrielus.home.sessionVariables = {
|
|
||||||
inherit GITHUB_TOKEN;
|
|
||||||
GITHUB_USERNAME = "Mateiadrielrafael";
|
|
||||||
};
|
|
||||||
}
|
|
4
modules/applications/shells/default.nix
Normal file
4
modules/applications/shells/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{ ... }: {
|
||||||
|
imports = [ ./sessionVariables.nix ];
|
||||||
|
home-manager.users.adrielus.programs.zsh.enable = true;
|
||||||
|
}
|
13
modules/applications/shells/sessionVariables.nix
Normal file
13
modules/applications/shells/sessionVariables.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ ... }:
|
||||||
|
with import ../../../secrets.nix;
|
||||||
|
let
|
||||||
|
variables = {
|
||||||
|
GITHUB_USERNAME = "Mateiadrielrafael";
|
||||||
|
inherit GITHUB_TOKEN;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
home-manager.users.adrielus = {
|
||||||
|
home.sessionVariables = variables;
|
||||||
|
# programs.zsh.sessionVariables = variables;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue