mirror of
https://github.com/zhaofengli/attic.git
synced 2024-12-14 11:57:30 +00:00
nixos: Allow configuring user and group names
This commit is contained in:
parent
0bb3d00136
commit
96824109c0
1 changed files with 16 additions and 0 deletions
|
@ -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