From d3fd287efbba3b67b2566341683289b6116eaa16 Mon Sep 17 00:00:00 2001 From: "Wael M. Nasreddine" Date: Tue, 19 Feb 2019 10:05:47 -0800 Subject: nix-darwin: activate home-manager through postActivation --- nix-darwin/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nix-darwin') diff --git a/nix-darwin/default.nix b/nix-darwin/default.nix index 810b3e5ee90..b637d34b9a7 100644 --- a/nix-darwin/default.nix +++ b/nix-darwin/default.nix @@ -30,8 +30,8 @@ in }; config = mkIf (cfg.users != {}) { - system.activationScripts.extraActivation.text = - lib.concatStringsSep "\n" (lib.mapAttrsToList (username: usercfg: '' + system.activationScripts.postActivation.text = + concatStringsSep "\n" (mapAttrsToList (username: usercfg: '' echo Activating home-manager configuration for ${username} sudo -u ${username} ${usercfg.home.activationPackage}/activate '') cfg.users); -- cgit v1.2.3