Make syncthing optional

This commit is contained in:
2025-12-06 15:19:07 -05:00
parent c959544f21
commit 5f8e03fc5c
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, inputs, system ? "x86_64-linux", username ? "abby", ... }:
{ config, pkgs, inputs, system ? "x86_64-linux", username ? "abby", use_syncthing ? false , ... }:
{
# Home Manager needs a bit of information about you and the
@ -30,6 +30,7 @@
mpv
vlc
moonlight-qt
starship
#inputs.ragenix.packges.${system}.default
# htop
@ -130,5 +131,5 @@ dashboard:
xdg.configFile."kitty/kitty.conf".source = ./xdg/kitty/kitty.conf;
home.file.".zshrc".source = xdg/zshrc;
services.syncthing = import ./syncthing.nix { config = config; };
services.syncthing = pkgs.lib.optionals (use_syncthing) import ./syncthing.nix { config = config; };
}