-{ lib, pkgs, config, mylibs, ... }:
+{ lib, pkgs, config, ... }:
let
name = "goaccess";
cfg = config.services.webstats;
'';
};
name = lib.mkOption {
- type = lib.types.string;
+ type = lib.types.str;
description = ''
Domain name. Corresponds to the Apache file name and the
folder name in which the state will be saved.
};
config = lib.mkIf (builtins.length cfg.sites > 0) {
+ services.duplyBackup.profiles.goaccess = {
+ rootDir = cfg.dataDir;
+ };
users.users.root.packages = [
pkgs.goaccess
];