diff --git a/modules/home/services/syncthing.nix b/modules/home/services/syncthing.nix new file mode 100644 index 0000000..013af90 --- /dev/null +++ b/modules/home/services/syncthing.nix @@ -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 + ''; + }; +} diff --git a/users/seb/home.nix b/users/seb/home.nix index 84e1bba..a6c23bc 100644 --- a/users/seb/home.nix +++ b/users/seb/home.nix @@ -36,10 +36,4 @@ ]; fonts.fontconfig.enable = true; - - home.file."Projects/.stignore".text = '' - (?d)target/ - (?d).direnv/ - (?d)result - ''; }