mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-06 16:57:03 +00:00
syncthing: use package options
Currently, all references are hardcoded even though we offer package options. Update to use package options.
This commit is contained in:
parent
22b418c13f
commit
20fac9bbdf
1 changed files with 8 additions and 8 deletions
|
@ -38,13 +38,13 @@ let
|
|||
device) folder.devices;
|
||||
}) (filterAttrs (_: folder: folder.enable) cfg.settings.folders);
|
||||
|
||||
jq = "${pkgs.jq}/bin/jq";
|
||||
sleep = "${pkgs.coreutils}/bin/sleep";
|
||||
printf = "${pkgs.coreutils}/bin/printf";
|
||||
cat = "${pkgs.coreutils}/bin/cat";
|
||||
curl = "${pkgs.curl}/bin/curl";
|
||||
install = "${pkgs.coreutils}/bin/install";
|
||||
syncthing = "${pkgs.syncthing}/bin/syncthing";
|
||||
jq = lib.getExe pkgs.jq;
|
||||
sleep = lib.getExe' pkgs.coreutils "sleep";
|
||||
printf = lib.getExe' pkgs.coreutils "printf";
|
||||
cat = lib.getExe' pkgs.coreutils "cat";
|
||||
curl = lib.getExe pkgs.curl;
|
||||
install = lib.getExe' pkgs.coreutils "install";
|
||||
syncthing = lib.getExe cfg.package;
|
||||
|
||||
updateConfig = pkgs.writers.writeBash "merge-syncthing-config" (''
|
||||
set -efu
|
||||
|
@ -606,7 +606,7 @@ in {
|
|||
|
||||
config = mkMerge [
|
||||
(mkIf cfg.enable {
|
||||
home.packages = [ (getOutput "man" pkgs.syncthing) ];
|
||||
home.packages = [ (getOutput "man" cfg.package) ];
|
||||
|
||||
systemd.user.services = {
|
||||
syncthing = {
|
||||
|
|
Loading…
Add table
Reference in a new issue