forked from nrabulinski/attic
nixos: Allow configuring user and group names
This commit is contained in:
parent
0bb3d00136
commit
96824109c0
|
@ -83,6 +83,20 @@ in
|
|||
type = types.nullOr types.path;
|
||||
default = null;
|
||||
};
|
||||
user = lib.mkOption {
|
||||
description = ''
|
||||
The group under which attic runs.
|
||||
'';
|
||||
type = types.str;
|
||||
default = "atticd";
|
||||
};
|
||||
group = lib.mkOption {
|
||||
description = ''
|
||||
The user under which attic runs.
|
||||
'';
|
||||
type = types.str;
|
||||
default = "atticd";
|
||||
};
|
||||
settings = lib.mkOption {
|
||||
description = ''
|
||||
Structured configurations of atticd.
|
||||
|
@ -156,6 +170,8 @@ in
|
|||
EnvironmentFile = cfg.credentialsFile;
|
||||
StateDirectory = "atticd"; # for usage with local storage and sqlite
|
||||
DynamicUser = true;
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
ProtectHome = true;
|
||||
ProtectHostname = true;
|
||||
ProtectKernelLogs = true;
|
||||
|
|
Loading…
Reference in a new issue