forked from DGNum/liminix
arhcive: rsync daemon needs a group
This commit is contained in:
parent
a5cfa37ed3
commit
561d55ed5f
1 changed files with 7 additions and 3 deletions
|
@ -181,12 +181,13 @@ in rec {
|
||||||
};
|
};
|
||||||
configFile = writeText "rsync.conf" ''
|
configFile = writeText "rsync.conf" ''
|
||||||
pid file = /run/rsyncd.pid
|
pid file = /run/rsyncd.pid
|
||||||
uid = store
|
uid = backup
|
||||||
[srv]
|
[srv]
|
||||||
path = /srv
|
path = /srv
|
||||||
use chroot = yes
|
use chroot = yes
|
||||||
auth users = backup
|
auth users = backup
|
||||||
read only = false
|
read only = false
|
||||||
|
gid = backup
|
||||||
secrets file = ${secrets_file}/.outputs/secrets
|
secrets file = ${secrets_file}/.outputs/secrets
|
||||||
'';
|
'';
|
||||||
in longrun {
|
in longrun {
|
||||||
|
@ -222,9 +223,12 @@ in rec {
|
||||||
# ];
|
# ];
|
||||||
};
|
};
|
||||||
|
|
||||||
users.store = {
|
users.backup = {
|
||||||
uid=500; gid=500; gecos="Storage owner"; dir="/srv";
|
uid=500; gid=500; gecos="Storage owner"; dir="/srv";
|
||||||
shell="/dev/null"; # authorizedKeys = [];
|
shell="/dev/null";
|
||||||
|
};
|
||||||
|
groups.backup = {
|
||||||
|
gid=500; usernames = ["backup"];
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultProfile.packages = with pkgs; [e2fsprogs strace tcpdump ];
|
defaultProfile.packages = with pkgs; [e2fsprogs strace tcpdump ];
|
||||||
|
|
Loading…
Reference in a new issue