+17
nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
+17
nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
······
+4
nixos/doc/manual/release-notes/rl-2305.section.md
+4
nixos/doc/manual/release-notes/rl-2305.section.md
···- Qt 5.12 and 5.14 have been removed, as the corresponding branches have been EOL upstream for a long time. This affected under 10 packages in nixpkgs, largely unmaintained upstream as well, however, out-of-tree package expressions may need to be updated manually.+- In `mastodon` it is now necessary to specify location of file with `PostgreSQL` database password. In `services.mastodon.database.passwordFile` parameter default value `/var/lib/mastodon/secrets/db-password` has been changed to `null`.- The `nix.readOnlyStore` option has been renamed to `boot.readOnlyNixStore` to clarify that it configures the NixOS boot process, not the Nix daemon.···- To reduce closure size in `nixos/modules/profiles/minimal.nix` profile disabled installation documentations and manuals. Also disabled `logrotate` and `udisks2` services.- A new `virtualisation.rosetta` module was added to allow running `x86_64` binaries through [Rosetta](https://developer.apple.com/documentation/apple-silicon/about-the-rosetta-translation-environment) inside virtualised NixOS guests on Apple silicon. This feature works by default with the [UTM](https://docs.getutm.app/) virtualisation [package](https://search.nixos.org/packages?channel=unstable&show=utm&from=0&size=1&sort=relevance&type=packages&query=utm).
+46
-12
nixos/modules/services/web-apps/mastodon.nix
+46
-12
nixos/modules/services/web-apps/mastodon.nix
···databaseActuallyCreateLocally = cfg.database.createLocally && cfg.database.host == "/run/postgresql";······+// lib.optionalAttrs (cfg.database.host != "/run/postgresql" && cfg.database.port != null) { DB_PORT = toString cfg.database.port; }systemCallsList = [ "@cpu-emulation" "@debug" "@keyring" "@ipc" "@mount" "@obsolete" "@privileged" "@setuid" ];·········-message = ''For local automatic database provisioning (services.mastodon.database.createLocally == true) with peer authentication (services.mastodon.database.host == "/run/postgresql") to work services.mastodon.user and services.mastodon.database.user must be identical.'';+For local automatic database provisioning (services.mastodon.database.createLocally == true) with peer+authentication (services.mastodon.database.host == "/run/postgresql") to work services.mastodon.user······+${cfg.database.host}:${toString cfg.database.port}:${cfg.database.name}:${cfg.database.user}:$(cat ${cfg.database.passwordFile})···
+1
-1
nixos/tests/all-tests.nix
+1
-1
nixos/tests/all-tests.nix
···-mastodon = handleTestOn ["x86_64-linux" "i686-linux" "aarch64-linux"] ./web-apps/mastodon.nix {};
-130
nixos/tests/web-apps/mastodon.nix
-130
nixos/tests/web-apps/mastodon.nix
···-openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -nodes -subj '/CN=mastodon.local' -days 36500-client.succeed("curl --fail https://mastodon.local/api/v1/instance | jq -r '.version' | grep '${pkgs.mastodon.version}'")-client.succeed("curl --fail https://mastodon.local/about | grep 'Mastodon hosted on mastodon.local'")-client.succeed("curl --fail $(curl https://mastodon.local/api/v1/instance 2> /dev/null | jq -r .thumbnail) --output /dev/null")
+9
nixos/tests/web-apps/mastodon/default.nix
+9
nixos/tests/web-apps/mastodon/default.nix
···
+160
nixos/tests/web-apps/mastodon/remote-postgresql.nix
+160
nixos/tests/web-apps/mastodon/remote-postgresql.nix
···+openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -nodes -subj '/CN=mastodon.local' -days 36500
+54
nixos/tests/web-apps/mastodon/script.nix
+54
nixos/tests/web-apps/mastodon/script.nix
···+client.succeed("curl --fail https://mastodon.local/api/v1/instance | jq -r '.version' | grep '${pkgs.mastodon.version}'")+client.succeed("curl --fail https://mastodon.local/about | grep 'Mastodon hosted on mastodon.local'")+client.succeed("curl --fail $(curl https://mastodon.local/api/v1/instance 2> /dev/null | jq -r .thumbnail) --output /dev/null")
+92
nixos/tests/web-apps/mastodon/standard.nix
+92
nixos/tests/web-apps/mastodon/standard.nix
···+openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -nodes -subj '/CN=mastodon.local' -days 36500