blob: cf5db3b65e720f3ed804cb04e83fcee06a9f6b69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{ flake, userName, config, lib, utils, ... }:
{
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
};
};
}
|