nixos-config/modules/syncthing-client.nix
Charlotte Van Petegem 0df4d5654f
Finish modularising config
There are still some things I want to change, but at least there aren't two systems now.
2021-06-27 00:32:31 +02:00

18 lines
426 B
Nix

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