summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeder Bergebakken Sundt <pbsds@hotmail.com>2024-10-04 15:11:13 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-10-15 18:39:11 +0000
commit6429b7b3228a9e593649679cb7073e8b74f48baa (patch)
tree4f482eb2db48dfd4e165078fbfaee7a28163bb93
parent[24.05] linux_xanmod: backport small refactor to allow clean backports (#348702) (diff)
downloadnixpkgs-6429b7b3228a9e593649679cb7073e8b74f48baa.tar.gz
nixos/resilio: add package option
(cherry picked from commit f0ad87bdd7adeccb8a73ebfb310d5a566ef07a8c)
-rw-r--r--nixos/modules/services/networking/resilio.nix6
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}
'';
};
};