Skip to content

Commit

Permalink
nixos/cfssl: don't create user/group unless service is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
lopsided98 committed Aug 21, 2018
1 parent 8395f9a commit c6191c8
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 c6191c8

Please sign in to comment.