FUCK YOU MODULES HOMELAB RULES

This commit is contained in:
2025-10-13 22:18:10 -05:00
parent 6682df4338
commit 962f44f05e
38 changed files with 157 additions and 535 deletions

View File

@@ -1,27 +1,12 @@
{ pkgs, config, lib, ... }:
let
cfg = config.modules.system.syncthing;
cfg = config.system.syncthing;
in
{
options.modules.system.syncthing = {
options.system.syncthing = {
enable = lib.mkEnableOption "enables syncthing";
# mode = lib.mkOption {
# type = lib.types.enum [ "server" "client" ];
# default = "client";
# description = "whether syncthing should run as a client (user) or server (system-wide).";
# };
#
# data_dir = lib.mkOption {
# type = lib.types.str;
# default = if cfg.mode == "server"
# then "/var/lib/syncthing"
# else "/home/blake/.local/state/syncthing";
# description = "optional override for syncthing data directory.";
# };
};
config = lib.mkIf cfg.enable {
# systemd.tmpfiles.rules = lib.optionals (cfg.mode == "server") ["d /var/lib/syncthing 0775 blake blake -"];