From 7c5bd6ea1fdd4ab83444ecc87ac96f9f05b621e4 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Tue, 7 Oct 2025 23:38:20 +0200 Subject: [PATCH] Move syncthing home stuff into a module --- modules/home/services/syncthing.nix | 14 ++++++++++++++ users/seb/home.nix | 6 ------ 2 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 modules/home/services/syncthing.nix 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 - ''; }