Unverified Commit 13bf1d62 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

nixos/resilio: add package option (#346427)

parents a6e54f56 f0ad87bd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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}
        '';
      };
    };