1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-01-30 21:05:02 +01:00

nixos: fix systemd.services position

This commit is contained in:
paki23 2025-01-04 13:03:39 +01:00
parent b3184e1e23
commit 9fabb92d8e
No known key found for this signature in database
GPG key ID: 13160FFB4CEB03F2

View file

@ -48,6 +48,7 @@ in {
lib.mkDefault (!cfg.useUserService);
};
}];
};
systemd.services = mapAttrs' (_:
{ home, programs, ... }:
@ -68,7 +69,6 @@ in {
];
};
}) cfg.users;
};
}
(mkIf (cfg.users != { } && !cfg.useUserService) {
systemd.services = mapAttrs' (_: usercfg: