- options = {
- services.myWebsites.commons.stats = {
- enable = lib.mkEnableOption "enable statistics";
- sites = lib.mkOption {
- type = lib.types.listOf (lib.types.submodule {
- options = {
- conf = lib.mkOption {
- type = lib.types.nullOr lib.types.path;
- default = null;
- };
- name = lib.mkOption { type = lib.types.string; };
+ options.services.webstats = {
+ dataDir = lib.mkOption {
+ type = lib.types.path;
+ default = "/var/lib/${name}";
+ description = ''
+ The directory where Goaccess stores its data.
+ '';
+ };
+ sites = lib.mkOption {
+ type = lib.types.listOf (lib.types.submodule {
+ options = {
+ conf = lib.mkOption {
+ type = lib.types.nullOr lib.types.path;
+ default = null;
+ description = ''
+ use custom goaccess configuration file instead of the
+ default one.
+ '';
+ };
+ name = lib.mkOption {
+ type = lib.types.string;
+ description = ''
+ Domain name. Corresponds to the Apache file name and the
+ folder name in which the state will be saved.
+ '';