Skip to content

Commit

Permalink
Fix setting home-manager session variables
Browse files Browse the repository at this point in the history
  • Loading branch information
hpfr committed Jul 2, 2021
1 parent 13f5365 commit 139a6fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions profiles/system/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ in {
mkEnableOption "my system base configuration";

config = mkIf cfg.enable {
environment.extraInit = concatMapStringsSep "\n" (user: ''
if [ "$(id -un)" = "${user}" ]; then
. /etc/profiles/per-user/${user}/etc/profile.d/hm-session-vars.sh
fi
'') [ "lh" ];
environment.etc."nixos/overlays-compat/overlays.nix".text =
builtins.readFile ./../../pkgs/overlays.nix;

Expand Down

0 comments on commit 139a6fd

Please sign in to comment.