From 561d55ed5f1d24592501852159a1f1db10743302 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Fri, 24 Mar 2023 17:10:49 +0000 Subject: [PATCH] arhcive: rsync daemon needs a group --- examples/arhcive.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/arhcive.nix b/examples/arhcive.nix index 1da0db1..5cf680a 100644 --- a/examples/arhcive.nix +++ b/examples/arhcive.nix @@ -181,12 +181,13 @@ in rec { }; configFile = writeText "rsync.conf" '' pid file = /run/rsyncd.pid - uid = store + uid = backup [srv] path = /srv use chroot = yes auth users = backup read only = false + gid = backup secrets file = ${secrets_file}/.outputs/secrets ''; in longrun { @@ -222,9 +223,12 @@ in rec { # ]; }; - users.store = { + users.backup = { 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 ];