diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2022-10-13 14:01:22 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2022-10-13 17:30:22 +0200 |
commit | 5afde0064ad5d3d5ff668efc2a5c47a413edcc6e (patch) | |
tree | 8ecf53e4ca05264f72991c22822621cd495f4056 | |
parent | b463da9989064740182841992f70a670601e415c (diff) | |
download | nixpkgs-5afde0064ad5d3d5ff668efc2a5c47a413edcc6e.tar nixpkgs-5afde0064ad5d3d5ff668efc2a5c47a413edcc6e.tar.gz nixpkgs-5afde0064ad5d3d5ff668efc2a5c47a413edcc6e.tar.bz2 nixpkgs-5afde0064ad5d3d5ff668efc2a5c47a413edcc6e.tar.lz nixpkgs-5afde0064ad5d3d5ff668efc2a5c47a413edcc6e.tar.xz nixpkgs-5afde0064ad5d3d5ff668efc2a5c47a413edcc6e.tar.zst nixpkgs-5afde0064ad5d3d5ff668efc2a5c47a413edcc6e.zip |
nixos/wordpress: make fonts directory writable
Needed to host e.g. google fonts locally.
-rw-r--r-- | nixos/modules/services/web-apps/wordpress.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/wordpress.nix b/nixos/modules/services/web-apps/wordpress.nix index d3dda27c3d6..660f1b2d7f8 100644 --- a/nixos/modules/services/web-apps/wordpress.nix +++ b/nixos/modules/services/web-apps/wordpress.nix @@ -22,6 +22,7 @@ let ln -s ${wpConfig hostName cfg} $out/share/wordpress/wp-config.php # symlink uploads directory ln -s ${cfg.uploadsDir} $out/share/wordpress/wp-content/uploads + ln -s ${cfg.fontsDir} $out/share/wordpress/wp-content/fonts # https://github.com/NixOS/nixpkgs/pull/53399 # @@ -95,6 +96,15 @@ let ''; }; + fontsDir = mkOption { + type = types.path; + default = "/var/lib/wordpress/${name}/fonts"; + description = lib.mdDoc '' + This directory is used to download fonts from a remote location, e.g. + to host google fonts locally. + ''; + }; + plugins = mkOption { type = types.listOf types.path; default = []; |