1
Fork 0

feat: set up env variables

This commit is contained in:
Matei Adriel 2020-04-10 16:51:16 +03:00
parent 3d99ab6e57
commit 8c19dd84bb
4 changed files with 18 additions and 8 deletions

View file

@ -1 +1 @@
{ ... }: { imports = [ ./misc.nix ./locale.nix ./git ]; } { ... }: { imports = [ ./misc.nix ./locale.nix ./git ./shells ]; }

View file

@ -1,7 +0,0 @@
{ ... }:
with import ../../secrets.nix; {
home-manager.users.adrielus.home.sessionVariables = {
inherit GITHUB_TOKEN;
GITHUB_USERNAME = "Mateiadrielrafael";
};
}

View file

@ -0,0 +1,4 @@
{ ... }: {
imports = [ ./sessionVariables.nix ];
home-manager.users.adrielus.programs.zsh.enable = true;
}

View 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;
};
}