diff options
author | Kira Bruneau <kira.bruneau@pm.me> | 2023-12-12 20:55:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 20:55:34 -0500 |
commit | 8ee593f8d9243f5e62947d66781d5f233fe87179 (patch) | |
tree | 5118fd0f68830bde211ad66f624e9435df28a367 /nixos/modules | |
parent | 56982af7b19351113251fe1d5576a3ec2b87c2bc (diff) | |
parent | ded54623986c89efa4d6c8e3d95d9f35babd0337 (diff) |
Merge pull request #273693 from lopsided98/syncthing-database-dir
nixos/syncthing: add `databaseDir` option
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/networking/syncthing.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index 99d4d9eeffcc6..e0425792431e6 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -559,6 +559,15 @@ in { ''; }; + databaseDir = mkOption { + type = types.path; + description = lib.mdDoc '' + The directory containing the database and logs. + ''; + default = cfg.configDir; + defaultText = literalExpression "config.${opt.configDir}"; + }; + extraFlags = mkOption { type = types.listOf types.str; default = []; @@ -660,7 +669,7 @@ in { -no-browser \ -gui-address=${if isUnixGui then "unix://" else ""}${cfg.guiAddress} \ -config=${cfg.configDir} \ - -data=${cfg.dataDir} \ + -data=${cfg.databaseDir} \ ${escapeShellArgs cfg.extraFlags} ''; MemoryDenyWriteExecute = true; |