Merge pull request #45441 from lopsided98/cfssl-user-fix

nixos/cfssl: don't create user/group unless service is enabled
This commit is contained in:
Sarah Brofeldt 2018-08-21 22:42:29 +02:00 committed by GitHub
commit f8306941b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ in {
}; };
}; };
config = { config = mkIf cfg.enable {
users.extraGroups.cfssl = { users.extraGroups.cfssl = {
gid = config.ids.gids.cfssl; gid = config.ids.gids.cfssl;
}; };
@ -159,7 +159,7 @@ in {
uid = config.ids.uids.cfssl; uid = config.ids.uids.cfssl;
}; };
systemd.services.cfssl = mkIf cfg.enable { systemd.services.cfssl = {
description = "CFSSL CA API server"; description = "CFSSL CA API server";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
after = [ "network.target" ]; after = [ "network.target" ];