From 8517a172421576f93bf43c896f050910a9f7a365 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Fri, 6 Feb 2026 14:05:14 -0600 Subject: test complicated copyparty config --- modules/services/options.nix | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'modules/services/options.nix') diff --git a/modules/services/options.nix b/modules/services/options.nix index 19812fc..024e2a0 100644 --- a/modules/services/options.nix +++ b/modules/services/options.nix @@ -77,10 +77,31 @@ in { }; }; - copyparty = selfhostOptions { - service_name = "copyparty"; - default_port = 8099; - }; + copyparty = + (selfhostOptions { + service_name = "copyparty"; + default_port = 8099; + }) + // { + users = mkOption { + type = lib.types.attrsOf (lib.types.submodule ({config, ...}: { + options = { + name = mkOption { + type = lib.types.str; + default = config._module.args.name; + internal = true; + }; + isAdmin = mkEnableOption "whether this user is an admin"; + passwordFile = mkOption { + description = "Absolute path to a file containing the password for this user"; + type = lib.types.str; + example = "/run/secrets.d/copyparty-passwd"; + }; + hasPublicDir = mkEnableOption "give this user a world-readable directory at /public/"; + }; + })); + }; + }; ngircd = { enable = mkEnableOption "IRC Server"; -- cgit v1.3.1