Skip to content

Commit

Permalink
Merge pull request #45441 from lopsided98/cfssl-user-fix
Browse files Browse the repository at this point in the history
nixos/cfssl: don't create user/group unless service is enabled
  • Loading branch information
srhb committed Aug 21, 2018
2 parents 28e51c7 + c6191c8 commit f830694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/security/cfssl.nix
Expand Up @@ -146,7 +146,7 @@ in {
};
};

config = {
config = mkIf cfg.enable {
users.extraGroups.cfssl = {
gid = config.ids.gids.cfssl;
};
Expand All @@ -159,7 +159,7 @@ in {
uid = config.ids.uids.cfssl;
};

systemd.services.cfssl = mkIf cfg.enable {
systemd.services.cfssl = {
description = "CFSSL CA API server";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
Expand Down

0 comments on commit f830694

Please sign in to comment.