diff options
| author | Alejandro Soto <alejandro@34project.org> | 2025-01-25 17:17:25 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2025-01-25 17:17:25 -0600 |
| commit | c64a88251a81fddf666106fcc1a5fdc6594b0b10 (patch) | |
| tree | 92a50e584f3f26133fcf8040b90db10bbee7487e /home/syncthing/default.nix | |
| parent | 26f01419f93be1b5038400a778428f8603b4c4f1 (diff) | |
home, sys: enable syncthing as user service
Diffstat (limited to 'home/syncthing/default.nix')
| -rw-r--r-- | home/syncthing/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/home/syncthing/default.nix b/home/syncthing/default.nix new file mode 100644 index 0000000..e234c42 --- /dev/null +++ b/home/syncthing/default.nix @@ -0,0 +1,15 @@ +{ config, lib, ... }: +with lib; let + cfg = config.local.syncthing; +in +{ + options.local.syncthing = { + enable = mkEnableOption "syncthing"; + }; + + config = mkIf cfg.enable { + services.syncthing = { + enable = true; + }; + }; +} |
