Unverified Commit 8a6fb272 authored by cyclopentane's avatar cyclopentane
Browse files

nixos/akkoma: change type of extraStatic sources to types.pathInStore

This change makes it possible to define `extraStatic` entries directly
from files in the Nix source tree by setting e.g.
`extraStatic."static/terms-of-service.html" = ./tos.html`. Previously,
is was necessary to use hacks like `pkgs.writeText "tos.html"
(builtins.readFile ./tos.html)` to do that.
parent 1a3f1857
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -675,9 +675,9 @@ in
      };

      extraStatic = mkOption {
        type = with types; nullOr (attrsOf package);
        type = with types; nullOr (attrsOf pathInStore);
        description = ''
          Attribute set of extra packages to add to the static files directory.
          Attribute set of extra paths to add to the static files directory.

          Do not add frontends here. These should be configured through
          [{option}`services.akkoma.frontends`](#opt-services.akkoma.frontends).