about summary refs log tree commit diff
path: root/nixos/modules/services/web-apps/wordpress.nix
diff options
context:
space:
mode:
authorColin Arnott <colin@urandom.co.uk>2023-01-15 11:43:27 +0000
committerColin Arnott <colin@urandom.co.uk>2023-01-28 10:31:56 +0000
commit64f3a304dbe68237f7fe172cb283e27f82da1ab9 (patch)
tree598bd0b534098487d300989915cf22659b78a4e0 /nixos/modules/services/web-apps/wordpress.nix
parent1754920c76b6fd0142a680b74e887022b244f3e7 (diff)
nixos/wordpress: ensure default sites includes a theme
Diffstat (limited to 'nixos/modules/services/web-apps/wordpress.nix')
-rw-r--r--nixos/modules/services/web-apps/wordpress.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/wordpress.nix b/nixos/modules/services/web-apps/wordpress.nix
index aabfb2261bb6e..d4c987da1144c 100644
--- a/nixos/modules/services/web-apps/wordpress.nix
+++ b/nixos/modules/services/web-apps/wordpress.nix
@@ -156,7 +156,8 @@ let
             (l: warn "setting this option with a list is deprecated"
               listToAttrs (map (p: nameValuePair (p.name or (throw "${p} does not have a name")) p) l))
             (attrsOf path);
-          default = {};
+          default = { inherit (pkgs.wordpressPackages.themes) twentytwentythree; };
+          defaultText = literalExpression "{ inherit (pkgs.wordpressPackages.themes) twentytwentythree; }";
           description = lib.mdDoc ''
             Path(s) to respective theme(s) which are copied from the 'theme' directory.