]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/blobdiff - modules/webapps/webstats/default.nix
Upgrade nixos
[perso/Immae/Config/Nix/NUR.git] / modules / webapps / webstats / default.nix
index 924d72debdf591af8a5fd4e3fa672fccffa6cca5..fe5f068d410345e1f84a20e8c0d65474989260ec 100644 (file)
@@ -23,7 +23,7 @@ in {
               '';
           };
           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.
@@ -37,6 +37,9 @@ in {
   };
 
   config = lib.mkIf (builtins.length cfg.sites > 0) {
+    services.duplyBackup.profiles.goaccess = {
+      rootDir = cfg.dataDir;
+    };
     users.users.root.packages = [
       pkgs.goaccess
     ];