diff options
author | Christian Theune <ct@flyingcircus.io> | 2015-11-28 20:17:49 +0100 |
---|---|---|
committer | Christian Theune <ct@flyingcircus.io> | 2015-11-28 20:17:49 +0100 |
commit | f6627a94024ad4ca6e52bc6d2cfbe5d2ad72b425 (patch) | |
tree | 2eb6add451dc1012657b6476a9e77a0de062effe /nixos/modules | |
parent | d0589b0c549d22ee7c981989a5f915b3b7d5f002 (diff) | |
download | nixpkgs-f6627a94024ad4ca6e52bc6d2cfbe5d2ad72b425.tar nixpkgs-f6627a94024ad4ca6e52bc6d2cfbe5d2ad72b425.tar.gz nixpkgs-f6627a94024ad4ca6e52bc6d2cfbe5d2ad72b425.tar.bz2 nixpkgs-f6627a94024ad4ca6e52bc6d2cfbe5d2ad72b425.tar.lz nixpkgs-f6627a94024ad4ca6e52bc6d2cfbe5d2ad72b425.tar.xz nixpkgs-f6627a94024ad4ca6e52bc6d2cfbe5d2ad72b425.tar.zst nixpkgs-f6627a94024ad4ca6e52bc6d2cfbe5d2ad72b425.zip |
syncthing: 0.11 -> 0.12
Also, keep 0.11 around (in an updated version) and make the pkg an option to the service module.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/networking/syncthing.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index 4eb32b1cf30..56c384731c6 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -21,7 +21,7 @@ in description = '' Whether to enable the Syncthing, self-hosted open-source alternative to Dropbox and BittorrentSync. Initial interface will be - available on http://127.0.0.1:8080/. + available on http://127.0.0.1:8384/. ''; }; @@ -40,6 +40,17 @@ in ''; }; + package = mkOption { + type = types.package; + default = pkgs.syncthing; + example = literalExample "pkgs.syncthing"; + description = '' + Syncthing package to use. + ''; + }; + + + }; }; @@ -66,7 +77,7 @@ in }; }; - environment.systemPackages = [ pkgs.syncthing ]; + environment.systemPackages = [ cfg.package ]; }; |