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.
2 parents a6e54f5 + f0ad87b commit 13bf1d6Copy full SHA for 13bf1d6
nixos/modules/services/networking/resilio.nix
@@ -5,8 +5,6 @@ with lib;
5
let
6
cfg = config.services.resilio;
7
8
- resilioSync = pkgs.resilio-sync;
9
-
10
sharedFoldersRecord = map (entry: {
11
dir = entry.directory;
12
@@ -83,6 +81,8 @@ in
83
81
'';
84
82
};
85
+ package = mkPackageOption pkgs "resilio-sync" { };
+
86
deviceName = mkOption {
87
type = types.str;
88
example = "Voltron";
@@ -285,7 +285,7 @@ in
285
RuntimeDirectory = "rslsync";
286
ExecStartPre = "${createConfig}/bin/create-resilio-config";
287
ExecStart = ''
288
- ${resilioSync}/bin/rslsync --nodaemon --config ${runConfigPath}
+ ${lib.getExe cfg.package} --nodaemon --config ${runConfigPath}
289
290
291
0 commit comments