From 11a062d7e918d33b9d15ae4d835e992687534a08 Mon Sep 17 00:00:00 2001 From: tdback Date: Wed, 25 Dec 2024 11:32:38 -0500 Subject: tidy up options --- modules/customs/cgit/default.nix | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'modules') diff --git a/modules/customs/cgit/default.nix b/modules/customs/cgit/default.nix index 2782a61..a6fd79a 100644 --- a/modules/customs/cgit/default.nix +++ b/modules/customs/cgit/default.nix @@ -37,38 +37,38 @@ in enable = mkEnableOption "cgit"; package = mkPackageOption pkgs "cgit" { }; user = mkOption { - description = "User to run cgit service as"; - type = types.str; default = "git"; + type = types.str; + description = "User to run cgit service as."; }; group = mkOption { - description = "Group to run cgit service as"; - type = types.str; default = "git"; + type = types.str; + description = "Group to run cgit service as."; }; scanPath = mkOption { - description = "A path which will be scanned for repositories"; - type = types.path; default = "/var/lib/cgit"; + type = types.path; + description = "A path which will be scanned for repositories."; }; virtualHost = mkOption { - description = "Virtual host to serve cgit on"; - type = types.str; default = null; + type = types.str; + description = "Virtual host to serve cgit on."; }; authorizedKeys = mkOption { - description = "SSH keys for authorized git users"; - type = types.listOf types.str; default = [ ]; + type = types.listOf types.str; + description = "SSH keys for authorized git users."; }; settings = mkOption { - description = "Additional cgit configuration. see cgitrc(5)"; + default = { }; type = with types; let settingType = oneOf [ bool int str ]; in attrsOf (oneOf [ settingType (listOf settingType) ]); - default = { }; + description = "Additional cgit configuration. See cgitrc(5)."; }; }; }; -- cgit v1.2.3