Move syncthing home stuff into a module

This commit is contained in:
SebastianStork 2025-10-07 23:38:20 +02:00
parent a176c88b5d
commit 7c5bd6ea1f
2 changed files with 14 additions and 6 deletions

View file

@ -0,0 +1,14 @@
{ config, lib, ... }@moduleArgs:
{
options.custom.services.syncthing.enable = lib.mkEnableOption "" // {
default = moduleArgs.osConfig.custom.services.syncthing.enable or false;
};
config = lib.mkIf config.custom.services.syncthing.enable {
home.file."Projects/.stignore".text = ''
(?d)target/
(?d).direnv/
(?d)result
'';
};
}