We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a66bd1 commit e8885abCopy full SHA for e8885ab
nixos/modules/services/web-apps/sftpgo.nix
@@ -42,6 +42,14 @@ in
42
'';
43
};
44
45
+ extraReadWriteDirs = mkOption {
46
+ type = types.listOf types.path;
47
+ default = [];
48
+ description = ''
49
+ Extra directories where SFTPGo is allowed to write to.
50
+ '';
51
+ };
52
+
53
user = mkOption {
54
type = types.str;
55
default = defaultUser;
@@ -324,7 +332,7 @@ in
324
332
User = cfg.user;
325
333
Group = cfg.group;
326
334
WorkingDirectory = cfg.dataDir;
327
- ReadWritePaths = [ cfg.dataDir ];
335
+ ReadWritePaths = [ cfg.dataDir ] ++ cfg.extraReadWriteDirs;
328
336
LimitNOFILE = 8192; # taken from upstream
329
337
KillMode = "mixed";
330
338
ExecStart = "${cfg.package}/bin/sftpgo serve ${utils.escapeSystemdExecArgs cfg.extraArgs}";
0 commit comments