diff --git a/modules/global/options.nix b/modules/global/options.nix index 9b45d84..c6d1a06 100644 --- a/modules/global/options.nix +++ b/modules/global/options.nix @@ -39,6 +39,7 @@ in universe = { packages = mkOpt (listOf package) [ ]; shellAliases = mkOpt (attrsOf str) { }; + variables = mkOpt (attrsOf (oneOf [ (listOf str) str path ])) { }; }; common = mkOpt (attrsOf anything) { }; diff --git a/modules/global/shell.nix b/modules/global/shell.nix index c2ef22f..a7dfd62 100644 --- a/modules/global/shell.nix +++ b/modules/global/shell.nix @@ -82,9 +82,13 @@ in timestamp = "date +%s -d"; neofetch = "neowofetch"; - }; + universe.variables = { + }; + + environment.variables = config.universe.variables; + environment.shellAliases = config.universe.shellAliases // { # sudo s = ifSudo "sudo -E ";