mirror of
https://github.com/tboerger/nixos-config
synced 2025-02-21 23:21:08 +01:00
27 lines
364 B
Nix
27 lines
364 B
Nix
{ pkgs, lib, config, options, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.profile.services.syncthing;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
profile = {
|
|
services = {
|
|
syncthing = {
|
|
enable = mkEnableOption "Syncthing";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services = {
|
|
syncthing = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|