X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=systems%2Feldiron%2Fwebsites%2Fcryptpad%2Ffarm.nix;fp=modules%2Fprivate%2Fwebsites%2Ftools%2Fcryptpad%2Ffarm.nix;h=58393ab32ac127c3c79681f90ceb4a0fa2e54d73;hp=b35f348fb4abfd3afa8b60e2edc7463e70a5e7c8;hb=1a64deeb894dc95e2645a75771732c6cc53a79ad;hpb=fa25ffd4583cc362075cd5e1b4130f33306103f0 diff --git a/modules/private/websites/tools/cryptpad/farm.nix b/systems/eldiron/websites/cryptpad/farm.nix similarity index 96% rename from modules/private/websites/tools/cryptpad/farm.nix rename to systems/eldiron/websites/cryptpad/farm.nix index b35f348..58393ab 100644 --- a/modules/private/websites/tools/cryptpad/farm.nix +++ b/systems/eldiron/websites/cryptpad/farm.nix @@ -161,6 +161,12 @@ in type = lib.types.attrsOf lib.types.path; default = lib.genAttrs (builtins.attrNames cfg.hosts) toVhostRoot; }; + vhostVarDirs = lib.mkOption { + description = "Instance vhosts var dirs"; + readOnly = true; + type = lib.types.attrsOf lib.types.path; + default = lib.genAttrs (builtins.attrNames cfg.hosts) (n: "/var/lib/cryptpad/${n}"); + }; }; config = { users.users = lib.optionalAttrs (cfg.hosts != {}) {