Add system config Split up modules into home and system sets Update Cleanup Move home config Add module attrs Fix empty LUKS device UUID Import local secrets
15 lines
292 B
Nix
15 lines
292 B
Nix
{ config, pkgs, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.dadada.home.syncthing;
|
|
in {
|
|
options.dadada.home.syncthing = {
|
|
enable = mkEnableOption "Enable Syncthing config";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
services.syncthing = {
|
|
enable = true;
|
|
tray = false;
|
|
};
|
|
};
|
|
}
|