diff --git a/modules/base/users/default.nix b/modules/base/users/default.nix index 86f162b..0cf2624 100644 --- a/modules/base/users/default.nix +++ b/modules/base/users/default.nix @@ -31,6 +31,10 @@ in { type = bool; default = false; }; + email = lib.mkOption { + type = str; + default = "motiejus@jakstys.lt"; + }; user = props; root = props; }; @@ -57,13 +61,12 @@ in { home-manager.useGlobalPkgs = true; home-manager.users.${config.mj.username} = {pkgs, ...}: - import ../../../shared/home/default.nix { + import ../../../shared/home { inherit lib; inherit pkgs; inherit (config.mj) stateVersion username; - inherit (cfg) devTools; + inherit (cfg) devTools email; hmOnly = false; - email = "motiejus@jakstys.lt"; }; }; } diff --git a/shared/work/default.nix b/shared/work/default.nix index 4b3ff85..ef72c5e 100644 --- a/shared/work/default.nix +++ b/shared/work/default.nix @@ -1,4 +1,5 @@ { + mj.base.users.email = "motiejus.jakstys@chronosphere.io"; home.sessionVariables.GOPRIVATE = "github.com/chronosphereio"; programs.git.extraConfig.url."git@github.com:".insteadOf = "https://github.com"; }