diff options
| author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2024-10-04 15:11:13 +0200 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-10-15 18:39:11 +0000 |
| commit | 6429b7b3228a9e593649679cb7073e8b74f48baa (patch) | |
| tree | 4f482eb2db48dfd4e165078fbfaee7a28163bb93 | |
| parent | [24.05] linux_xanmod: backport small refactor to allow clean backports (#348702) (diff) | |
| download | nixpkgs-6429b7b3228a9e593649679cb7073e8b74f48baa.tar.gz | |
nixos/resilio: add package option
(cherry picked from commit f0ad87bdd7adeccb8a73ebfb310d5a566ef07a8c)
| -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} ''; }; }; |
