From d9dab5b9d3f01771eebc36b1d7fc6f5ede2aa751 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Mon, 9 Jun 2025 13:24:58 +0200 Subject: [PATCH] Resource bashrc --- modules/nixos/domain.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/nixos/domain.nix b/modules/nixos/domain.nix index 85eb55a..cfc9112 100644 --- a/modules/nixos/domain.nix +++ b/modules/nixos/domain.nix @@ -127,7 +127,7 @@ in # Set up home directory security.pam.services.login.makeHomeDir = true; security.pam.services.sshd.makeHomeDir = true; - environment.loginShellInit = + environment.etc.profile.text = let homeConfiguration = inputs.home-manager.lib.homeManagerConfiguration { inherit pkgs; @@ -144,11 +144,12 @@ in ] ++ config.home-manager.sharedModules; }; in - '' + mkAfter '' # Activate Home Manager configuration for domain users if id | egrep -o 'groups=.*' | sed 's/,/\n/g' | cut -d'(' -f2 | sed 's/)//' | egrep -o "^domain users$"; then echo "Setting up environment for domain user" SKIP_SANITY_CHECKS=1 ${homeConfiguration.activationPackage}/activate + . $HOME/.bashrc fi ''; };