mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
nixos/resilio: add package option
This commit is contained in:
parent
d2ceabfe07
commit
f0ad87bdd7
1 changed files with 3 additions and 3 deletions
|
@ -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}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue