diff options
| author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2024-10-18 20:10:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-18 20:10:15 +0200 |
| commit | b9562c824b11473587286eb499680129c2d0d4f1 (patch) | |
| tree | ed9ac5df62088b450fea6af92406e7b969e626c0 | |
| parent | Merge: [Backport release-24.05] nextcloud30: 30.0.0 -> 30.0.1 (#349551) (diff) | |
| parent | nixos/resilio: add package option (diff) | |
| download | nixpkgs-b9562c824b11473587286eb499680129c2d0d4f1.tar.gz | |
[Backport release-24.05] nixos/resilio: add package option (#348854)
| -rw-r--r-- | nixos/modules/services/networking/resilio.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/resilio.nix b/nixos/modules/services/networking/resilio.nix index 395796d39db8..9b200c38a8c2 100644 --- a/nixos/modules/services/networking/resilio.nix +++ b/nixos/modules/services/networking/resilio.nix @@ -5,8 +5,6 @@ with lib; let cfg = config.services.resilio; - resilioSync = pkgs.resilio-sync; - sharedFoldersRecord = map (entry: { dir = entry.directory; @@ -83,6 +81,8 @@ in ''; }; + package = mkPackageOption pkgs "resilio-sync" { }; + deviceName = mkOption { type = types.str; example = "Voltron"; @@ -285,7 +285,7 @@ in RuntimeDirectory = "rslsync"; ExecStartPre = "${createConfig}/bin/create-resilio-config"; ExecStart = '' - ${resilioSync}/bin/rslsync --nodaemon --config ${runConfigPath} + ${lib.getExe cfg.package} --nodaemon --config ${runConfigPath} ''; }; }; |
