2019-04-21 10:18:35 +01:00
|
|
|
{ config, pkgs, ... }:
|
2019-07-06 16:42:32 +01:00
|
|
|
let
|
|
|
|
unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz;
|
|
|
|
in
|
2019-04-21 10:18:35 +01:00
|
|
|
{
|
2019-07-06 16:42:32 +01:00
|
|
|
nixpkgs.config = {
|
|
|
|
packageOverrides = pkgs: {
|
|
|
|
unstable = import unstableTarball {
|
|
|
|
config = config.nixpkgs.config;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2019-04-21 10:18:35 +01:00
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
user = "cyryl";
|
|
|
|
dataDir = "/home/cyryl/.syncthing";
|
|
|
|
openDefaultPorts = true;
|
2019-07-06 16:42:32 +01:00
|
|
|
package = pkgs.unstable.syncthing;
|
2019-04-21 10:18:35 +01:00
|
|
|
};
|
2019-07-06 16:42:32 +01:00
|
|
|
}
|