From 46152e140fe428538a562dcfd1627a88a02dcc09 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 13 Mar 2022 10:41:41 +0100 Subject: ... --- user-profiles/core.nix | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'user-profiles') diff --git a/user-profiles/core.nix b/user-profiles/core.nix index cb2c400e..cf5db3b6 100644 --- a/user-profiles/core.nix +++ b/user-profiles/core.nix @@ -1,14 +1,21 @@ -{ flake, userName, lib, ... }: +{ flake, userName, config, lib, utils, ... }: { - users.users.${userName} = {}; # Just make sure the user is created - - home-manager.users.${userName} = { - imports = lib.attrValues flake.homeModules; - - config = { - manual.manpages.enable = true; - home.stateVersion = "20.09"; - systemd.user.startServices = "sd-switch"; + config = { + users.users.${userName} = {}; # Just make sure the user is created + + home-manager.users.${userName} = { + imports = lib.attrValues flake.homeModules; + + config = { + manual.manpages.enable = true; + home.stateVersion = "20.09"; + systemd.user.startServices = "sd-switch"; + + }; + }; + + systemd.services."home-manager-${utils.escapeSystemdPath userName}" = lib.mkIf config.home-manager.enableSystemd { + enable = false; # deploy with deploy-rs }; }; } -- cgit v1.2.3