[home] Refactor into roles

This commit is contained in:
2025-09-07 11:24:23 -07:00
parent a90b30eb1c
commit fb9dd66cf4
18 changed files with 528 additions and 227 deletions

View File

@@ -0,0 +1,22 @@
{ 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;
};
};
}