nixos-config/modules/graphical/syncthing/default.nix
Charlotte Van Petegem 0fc6c32a47
Reorganize repository
2021-07-10 09:03:38 +02:00

18 lines
437 B
Nix

{ config, lib, pkgs, ... }:
{
options.chvp.graphical.syncthing.enable = lib.mkOption {
default = false;
example = true;
};
config = lib.mkIf config.chvp.graphical.syncthing.enable {
chvp.base.zfs.homeLinks = [
{ path = ".config/syncthing"; type = "data"; }
{ path = "sync"; type = "cache"; }
];
home-manager.users.charlotte = { pkgs, ... }: {
services.syncthing.enable = true;
};
};
}