Skip to content

Commit f0ad87b

Browse files
committed
nixos/resilio: add package option
1 parent d2ceabf commit f0ad87b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nixos/modules/services/networking/resilio.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ with lib;
55
let
66
cfg = config.services.resilio;
77

8-
resilioSync = pkgs.resilio-sync;
9-
108
sharedFoldersRecord = map (entry: {
119
dir = entry.directory;
1210

@@ -83,6 +81,8 @@ in
8381
'';
8482
};
8583

84+
package = mkPackageOption pkgs "resilio-sync" { };
85+
8686
deviceName = mkOption {
8787
type = types.str;
8888
example = "Voltron";
@@ -285,7 +285,7 @@ in
285285
RuntimeDirectory = "rslsync";
286286
ExecStartPre = "${createConfig}/bin/create-resilio-config";
287287
ExecStart = ''
288-
${resilioSync}/bin/rslsync --nodaemon --config ${runConfigPath}
288+
${lib.getExe cfg.package} --nodaemon --config ${runConfigPath}
289289
'';
290290
};
291291
};

0 commit comments

Comments
 (0)