aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2024-12-25 11:32:38 -0500
committertdback <tyler@tdback.net>2024-12-25 11:32:38 -0500
commit11a062d7e918d33b9d15ae4d835e992687534a08 (patch)
tree67eee0934a6331d75f47690ab04a9aaec5dfd0c0 /modules
parent0483a25a9411fb25a11dec3ab0574a1827ee6acc (diff)
tidy up options
Diffstat (limited to 'modules')
-rw-r--r--modules/customs/cgit/default.nix24
1 files changed, 12 insertions, 12 deletions
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).";
};
};
};