22 lines
336 B
Nix
22 lines
336 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.home.roles.sync;
|
|
in
|
|
{
|
|
options.home.roles.sync = {
|
|
enable = mkEnableOption "Enable file synchronization services";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
syncthingtray
|
|
];
|
|
|
|
services.syncthing = {
|
|
enable = true;
|
|
};
|
|
};
|
|
} |