nixos/cfssl: minor updates/cleanup
This commit is contained in:
parent
67abfde611
commit
2d055bb37a
@ -31,7 +31,7 @@ in {
|
|||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
default = 8888;
|
default = 8888;
|
||||||
type = types.ints.u16;
|
type = types.port;
|
||||||
description = "Port to bind.";
|
description = "Port to bind.";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -156,11 +156,11 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
users.extraGroups.cfssl = {
|
users.groups.cfssl = {
|
||||||
gid = config.ids.gids.cfssl;
|
gid = config.ids.gids.cfssl;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.extraUsers.cfssl = {
|
users.users.cfssl = {
|
||||||
description = "cfssl user";
|
description = "cfssl user";
|
||||||
home = cfg.dataDir;
|
home = cfg.dataDir;
|
||||||
group = "cfssl";
|
group = "cfssl";
|
||||||
@ -177,6 +177,7 @@ in {
|
|||||||
WorkingDirectory = cfg.dataDir;
|
WorkingDirectory = cfg.dataDir;
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
User = "cfssl";
|
User = "cfssl";
|
||||||
|
Group = "cfssl";
|
||||||
|
|
||||||
ExecStart = with cfg; let
|
ExecStart = with cfg; let
|
||||||
opt = n: v: optionalString (v != null) ''-${n}="${v}"'';
|
opt = n: v: optionalString (v != null) ''-${n}="${v}"'';
|
||||||
|
Loading…
Reference in New Issue
Block a user