X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fdefault.nix;h=119d62e565251a45687bad76cc06d708a2c10e55;hp=e2bcef5269aac642ca39ecb4dff7ffe1134e4a8a;hb=8415083eb6acc343dfa404dbbc12fa0171a48a20;hpb=8fa7ff2c63fb0722144bc90837512d9f8b8c929d diff --git a/modules/private/websites/default.nix b/modules/private/websites/default.nix index e2bcef5..119d62e 100644 --- a/modules/private/websites/default.nix +++ b/modules/private/websites/default.nix @@ -64,15 +64,19 @@ let makeExtraConfig = (builtins.filter (x: x != null) (lib.attrsets.mapAttrsToList (n: v: v.extraConfig or null) apacheConfig)); in { - options.myServices.websites.webappDirs = lib.mkOption { - type = lib.types.attrsOf lib.types.path; - description = '' - Webapp paths to create in /run/current-system/webapps - ''; - default = {}; + options.myServices.websites = { + enable = lib.mkEnableOption "enable websites"; + + webappDirs = lib.mkOption { + type = lib.types.attrsOf lib.types.path; + description = '' + Webapp paths to create in /run/current-system/webapps + ''; + default = {}; + }; }; - config = { + config = lib.mkIf config.myServices.websites.enable { services.backup.profiles.php = { rootDir = "/var/lib/php"; };