From f5b997a712c0bdef6496a5cd458b7b5148718eda Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 6 Mar 2024 22:50:46 -0500 Subject: [PATCH] global/options: add universe.variables --- modules/global/options.nix | 1 + modules/global/shell.nix | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 ";