Commit graph

2321 commits

Author SHA1 Message Date
Alexander Sieg 4bc3f43923
nixos/dependency-track: fix nginx config for frontend
Apparend I fell for some browser cache when implementing this in the
first place. This patch is based on the upstream nginx config.

5f318aca10/docker/etc/nginx/templates/default.conf.template
2025-04-10 12:24:29 +02:00
Defelo 3ae07e6d12
nixos/whoami: init module 2025-04-09 16:51:04 +02:00
wrvsrx 30fe7315db
nixos/baikal: add it 2025-04-09 18:16:20 +08:00
Leona Maroni f2ebbabda0
discourse: 3.3.2 -> 3.4.2
https://meta.discourse.org/t/3-3-3-security-and-maintenance-release/343239
https://meta.discourse.org/t/3-3-4-security-and-maintenance-release/349301
https://blog.discourse.org/2025/02/unpacking-discourse-3-4/
https://meta.discourse.org/t/3-4-1-bug-fix-and-ux-release/353247
https://meta.discourse.org/t/3-4-2-security-and-bug-fix-release/358152
2025-04-08 22:56:45 +02:00
Sandro Jäckel b760ece2bf
nixos/gancio: fix all defaultText
Otherwise they don't make much context when seen in docs outside of the module
2025-04-08 21:30:45 +02:00
Sandro Jäckel 79178cc661
nixos/gancio: exec into configured user with cli 2025-04-08 21:30:42 +02:00
Sandro Jäckel 57818dff0a
nixos/gancio: add missing quotes to cli command, remove erroneous dash 2025-04-08 21:29:14 +02:00
Seth Flynn 43f7128bbe
nixos/reposilite: init module (#381197) 2025-04-08 11:07:36 -04:00
Bruno BELANYI 9c09962137 nixos/homebox: add 'database.createLocally' 2025-04-07 22:19:57 +01:00
Bruno BELANYI 2830bf83f8 nixos/homebox: remove 'network.target' dependency 2025-04-07 21:31:52 +01:00
Bruno BELANYI 4ae49051cb nixos/homebox: allow using UNIX sockets
This is necessary to use PostgreSQL with a local socket.
2025-04-07 21:27:16 +01:00
Tristan Ross 77f77a046a
mattermost: 9.11.11 -> 10.5.2; use formats.json; squash systemd-tmpfiles warning (#376838) 2025-04-07 10:27:15 -07:00
Sandro cf46302e9a
nixos/modules: fix part-db package (#388313) 2025-04-06 20:52:00 +02:00
Bruno BELANYI ce4166636b
homebox: 0.17.0 -> 0.18.0; nixos/homebox: update defaults (#388655) 2025-04-06 14:38:36 +01:00
Weijia Wang 999d6cd51c
nixos/archtika: fix module and package (#392678) 2025-04-04 14:52:59 +02:00
Sandro Jäckel ed26b7b0c3
nixos/onlyoffice: misc cleanup 2025-04-04 11:37:33 +02:00
Pol Dellaiera a9899b4c8f
nixos/glance: fix broken server stats (#395859) 2025-04-04 11:23:17 +02:00
MunsMan 2728be7c31 nixos/glance: fix broken server stats 2025-04-04 10:43:13 +02:00
uku dfaad22261
nixos/reposilite: init module 2025-04-04 09:46:24 +02:00
7c6f434c 8d47959e22
x2t: init at 8.3.2 (#338794) 2025-04-04 04:46:52 +00:00
Florian Klink e9e9e07548
nixos/movim: remove useless xargs script call (#395727) 2025-04-04 00:21:00 +01:00
Florian Klink e9a9de1735
nixos/movim: H2O support, H2O + Ejabberd + runTest (#385040) 2025-04-03 19:51:51 +01:00
Arnout Engelen ea0b776f71
x2t: init at 8.3.2 2025-04-03 20:08:48 +02:00
Piotr Kwiecinski d96daf7fdd
nixos/agorakit: add phpPackage option and pass it to fpm pool 2025-04-03 16:36:28 +02:00
Pol Dellaiera 2bfc080955
nixos/monica: add phpPackage option and pass it to phpfpm pool (#395761) 2025-04-03 16:08:01 +02:00
Sandro 0a124d5554
nixos/gancio: add sendmail to path, make cli easier to use (#395737) 2025-04-03 15:56:51 +02:00
Piotr Kwiecinski 1db72d9afc
nixos/monica: add phpPackage option and pass it to phpfpm pool
fixes nixosTests.monica failure
2025-04-03 15:52:08 +02:00
Sandro Jäckel 052423a7e9
nixos/gancio: add sendmail to path 2025-04-03 14:16:02 +02:00
Sandro Jäckel c5eb4441b9
nixos/gancio: make cli easier to use 2025-04-03 14:16:02 +02:00
โทสฺตัล b556798f65 nixos/movim: remove useless xargs script call
xargs templating already covers this
2025-04-03 18:16:00 +07:00
Nick Cao a084e920e0
ocis_5-bin: rename from ocis-bin (#394598) 2025-04-02 16:56:09 -04:00
โทสฺตัล 8a8b892cc1 nixos/movim: add H2O support + testing with ejabberd 2025-04-03 00:18:28 +07:00
โทสฺตัล 0d9a758f73 nixos/movim: cleanup Nginx option 2025-04-03 00:16:19 +07:00
โทสฺตัล b0f9f1c9f5 nixos/movim: refactor types (shouldn’t meaningfully change anything) 2025-04-03 00:16:18 +07:00
Felix Zieger 1bf74aee3c nixos/haven: init 2025-04-02 17:30:18 +02:00
Maximilian Bosch 39dcdc5c9b
nixos/nextcloud: check if ownership of config is correct
Follow-up on #169733

For `data`, Nextcloud checks on its own if everything is readable.
However, for `config` it's crucial that the ownership is actually
correct: otherwise, systemd-tmpfiles will refuse any operations inside
because of unsafe path transitions.

This can result in a subtly broken setup by the `override.config.php`
not being updated, but also not part of the system closure anymore
(another override.config.php is referenced now) which means it'll be
GCed eventually even though Nextcloud relies on it.

If this precondition is not met, the following error will be printed:

    nextcloud-setup-start[972]: /var/lib/nextcloud/config is not owned by user 'nextcloud'!
    nextcloud-setup-start[972]: Please check the logs via 'journalctl -u systemd-tmpfiles-setup'
    nextcloud-setup-start[972]: and make sure there are no unsafe path transitions.
    nextcloud-setup-start[972]: (https://nixos.org/manual/nixos/stable/#module-services-nextcloud-pitfalls-during-upgrade)
2025-04-02 09:30:17 +02:00
misuzu 0f4487251d
strfry: init at 1.0.4, nixos/strfry: init (#385587) 2025-04-02 10:13:41 +03:00
Morgan Jones 9f23ed6644
nixos/mattermost: increase db connect timeouts 2025-04-01 22:17:57 -07:00
Morgan Jones ea485e1207
mattermost: squash systemd-tmpfiles warning (+ other minor fixes)
There was a systemd-tmpfiles warning about not being able to remove the
'plugins' directory. Squash this warning through removal of unnecessary
systemd-tmpfiles options, and write a test for it.

Add the {option}`services.mattermost.pluginsBundle` option to allow
overriding the plugin directory and also using it for tests. Update
wording in option documentation so it is more clear.

Use formats.json instead of builtins.toJSON so module merging works.

Make the tests go faster by pipelining shutdowns of nodes.
2025-04-01 19:20:48 -07:00
Felix Zieger dfd82bf3e5 nixos/strfry: init 2025-04-01 23:20:15 +02:00
Silvan Mosberger 374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Maximilian Bosch f20b220e17
Merge: nixos/nextcloud: add maintainer team, update docs about maintainership of apps (#393069) 2025-04-01 11:25:28 +02:00
Casey Link 2db95477f9 nixos/ocis: default to the newly renamed ocis-bin5 package
And we are getting ready for ocis-bin7 to land, where we will need to
compare it to the system.stateVersion.
2025-04-01 08:49:20 +02:00
Robert Hensing e12690d530 nixos/movim: Fix accidental append to module system property 2025-03-31 12:24:22 +02:00
Maximilian Bosch 97d215cf17
Merge: php: 8.3 -> 8.4 (#394112) 2025-03-30 22:54:31 +02:00
Nico Felbinger 7dc56449ad
nixos/modules: fix part-db package 2025-03-30 15:20:13 +02:00
Jonas Heinrich 8d69e1faae
nixos/wordpress: Use https by default for caddy (#375375) 2025-03-30 10:31:52 +02:00
Maximilian Bosch 65121c9333
Merge: nextcloud-occ: work with sudo disabled (#380211) 2025-03-29 23:25:45 +01:00
Daniel Xu f1c4d339a5 nixos/wordpress: Use https by default for caddy
Previously, `http://` scheme was hard coded into the caddy config if
`webserver = "caddy"` was chosen. This is fine for local testing, but is
problematic if you want your nixos host to be public facing.

In the public facing case, you generally want to be using TLS. But since
the wordpress module generates the caddyfile rule, the user's nixos
config cannot easily change it to also allow https.

An alternative would be to reverse proxy an https rule to the generated
http rule, but that's somewhat questionable as there's not an internal
http endpoint to proxy to. It might be possible but I couldn't figure
it out.

So simplify by omitting the scheme. This causes caddy to use https by
default and 301 redirect any http requests to the https endpoint. Caddy
will just do the right thing if it's being hosted on a local/internal
hostname (self sign certificates).

This should be backwards compatible with previous default if users are
using reasonable browsers/tools.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
2025-03-29 15:10:35 -06:00
Bruno BELANYI 8fb60c58dd
calibre-web: fix ebook conversion missing config_binariesdir setting (#366642) 2025-03-29 20:08:35 +00:00
Pol Dellaiera 0ef31de6ea
monica: pin php version to 8.3 (#394415) 2025-03-29 20:12:16 +01:00
Pol Dellaiera f79c218ea5
icingaweb2: pin php version to 8.3 (#394399) 2025-03-29 20:11:29 +01:00
Maximilian Bosch b88fdf622c
Merge: nixos/dolibarr: pin php version (to 8.3) (#394153) 2025-03-29 20:11:04 +01:00
Pol Dellaiera 6945312759
agorakit: pin php version to 8.2 (#394410) 2025-03-29 20:10:33 +01:00
Piotr Kwiecinski 69c26f338b
monica: pin php version to 8.3 2025-03-29 20:07:31 +01:00
Piotr Kwiecinski ab3b601d88
rutorrent: pin php version to 8.2 2025-03-29 20:00:27 +01:00
Piotr Kwiecinski bafb6848e7
agorakit: pin php version to 8.2 2025-03-29 19:44:20 +01:00
Piotr Kwiecinski 15d0312a8a
icingaweb2: pin php version to 8.3 2025-03-29 19:25:44 +01:00
Gaetan Lepage 605ed28375 nixos/dolibarr: pin php version (to 8.3) 2025-03-29 13:32:10 +01:00
Maximilian Bosch 90a0f3874f
nixos/selfoss: pin to php83
https://github.com/NixOS/nixpkgs/pull/394112#pullrequestreview-2726857849
2025-03-28 22:46:39 +01:00
Maximilian Bosch 43fd8c10aa
Merge: nixos/nextcloud-notify_push: add nextcloud-setup (#392226) 2025-03-28 17:29:13 +01:00
lassulus 3e7ce75dc1
jitsi-meet and prosody Added ownerallowkick patch and all_owners module (#155755) 2025-03-27 16:18:08 -07:00
Peder Bergebakken Sundt a41310e269
nixos/code-server: recommend libargon2 over npx argon2-cli (#388640) 2025-03-27 01:19:37 +01:00
Peder Bergebakken Sundt facba1f63a nixos/code-server: recommend libargon2 over npx argon2-cli 2025-03-26 23:09:55 +01:00
Jonas Heinrich 5325034183
froide-govplan: init at 0-unstable-2025-01-27 (#349750) 2025-03-26 14:27:02 +01:00
Marcel Novotny 2411e6eecd Added Allowners muc module to prosody and jitsi-meet 2025-03-25 23:17:58 +01:00
Dominique Martinet fb5e34fb39 nixos/cryptpad: fix service with nodejs 22.11 (for real)
The previous fix had only been tested locally through a runtime edit of
the service, and the order in which @chown had been re-added was
different so commit cf498c1a61 ("nixos/cryptpad: fix service with
nodejs 22.11") did not actually fix the issue.

This properly orders @chown after @privileged so the rule is respected,
and also properly denies with EPERM instead of allowing the chown family
of syscalls: this will properly prevent seccomp from killing nodejs
while still disallowing fchown()

Fixes https://github.com/NixOS/nixpkgs/issues/370717
2025-03-25 13:37:25 +00:00
Maximilian Bosch 773094b49c
nixos/nextcloud: clarify support status of apps in the manual
Realized that this is something, I discussed with Benedikt, but wasn't
written down somewhere.
2025-03-25 12:41:30 +00:00
Maximilian Bosch d3110c9532
nextcloud: update maintainer information
* Create a dedicated team. Before, information was inconsistent between
  e.g. tests and package, module had none at all.
* Add maintainership from us to all trivially packaged apps. This is
  only to make sure that we take care of them building and installing
  and that's about it.
2025-03-25 12:41:18 +00:00
Maximilian Bosch 1fcfb2dcea
Merge: nixos/nextcloud: Also install when config.php exists but is empty (#391375) 2025-03-25 10:43:41 +00:00
thiloho 6cc803093c
nixos/archtika: fix mkEnableOption naming 2025-03-24 11:45:34 +01:00
Jonas Heinrich 46e424a858
nixos/dokuwiki: Remove unused enable option (#391057) 2025-03-24 10:30:51 +01:00
Robert Helgesson ee04cf23b6 nixos/grav: clean up PHP extensions
Specifically, simply add the extensions that are not already part of
the default `enabled` set.
2025-03-24 10:09:27 +01:00
Jonas Heinrich 82a382ed09
nixos/keycloak: add realmFiles option (#273833) 2025-03-24 09:35:04 +01:00
Weijia Wang 367cbed935
nixos/kimai: ensure that our local.yaml is valid on init time (#371919) 2025-03-23 20:23:59 +01:00
Weijia Wang 86e6f70e1d
nixos/kimai: fix an error on first init after an upgrade (#371917) 2025-03-23 20:23:44 +01:00
Jonas Heinrich 4a8b7bb45d nixos/froide-govplan: init 2025-03-23 18:05:54 +01:00
Sandro Jäckel 72b9742768
nixos/nextcloud-notify_push: add nextcloud-setup
without it notify might start to early and then fail 5 times before
nextcloud is even ready.
2025-03-23 00:27:09 +01:00
hot burger 2dad835033 nextcloud-occ: work with sudo disabled 2025-03-22 15:11:17 -07:00
provokateurin 34da0bd4fc
nixos/nextcloud: Also install when config.php exists but is empty
Running any occ command will create an empty config file automatically: f85154f1e1/lib/base.php (L194-L196)
This causes the current check to never execute the installation, in case any occ command was run before it (which itself fails because Nextcloud is not installled yet).
So any services which don't properly depend on nextcloud-setup.service cause Nextcloud to never be installed.
2025-03-21 14:51:30 +01:00
Sandro 9f2544d0ea
nixos/wakapi: harden systemd service (#389534) 2025-03-20 17:48:34 +01:00
Kerstin 72cda846bf
nixos/mobilizon: create sitemap directory (#391389) 2025-03-20 14:35:36 +01:00
Robert Rose cd10f9a874 nixos/keycloak: add realmFiles option
Add an option to import Keycloak realms during
startup from exported realm files.
2025-03-20 12:07:38 +01:00
Sandro Jäckel c317d5e222
nixos/mobilizon: create sitemap directory
Mar 19 21:35:05 mobilizon mobilizon[1324]: 21:35:05.504 [info] {"args":{},"attempt":19,"duration":130905,"error":"** (File.Error) could not write to file \"/var/lib/mobilizon/sitemap/sitemap-00001.xml\": no such file or directory","event":"job:exception","id":178203,"max_attempts":20,"meta":{},"queue":"background","queue_time":510620016,"source":"oban","state":"failure","tags":[],"worker":"Mobilizon.Service.Workers.BuildSiteMap"}
2025-03-19 22:52:48 +01:00
Sandro ddef00d3f0
nixos/zipline: improve systemd hardening (#387119) 2025-03-19 19:01:37 +01:00
Sandro 1289c91409
nixos/echoip: improve systemd hardening (#387466) 2025-03-19 19:00:27 +01:00
Defelo ef19fcf725
nixos/zipline: improve systemd hardening 2025-03-19 18:16:01 +01:00
e1mo 100559d83c
nixos/dokuwiki: Remove unused enable option
The option has been added in 50029ed89c
but never had any effect. As far as I could tell, it was only added for
backward compatibility. I think it's safe to remove this after 3+ years.

I opted for removal instead of implementing it since the module will
just do nothing if no site is configure, thus no enable / disable switch
is needed. Especially on a per-site level.
2025-03-18 20:36:09 +01:00
Sandro 326cd70480
nixos/movim: improve systemd dependency directives (#388750) 2025-03-18 17:42:52 +01:00
Pol Dellaiera ad9f51048b
nixos/flarum: restart on package update (#389453) 2025-03-16 07:28:51 +01:00
Pol Dellaiera b29c5b7119
treewide: add documentation for nixos systemd units (#389283) 2025-03-15 21:30:08 +01:00
jrdsgl 38590f303b
nixos/changedetection-io: fix typo (#383539)
Update changedetection-io.nix

typo correction variables
2025-03-15 10:59:05 +01:00
โทสฺตัล 521d3689fb nixos/movim: move phpExecutionUnit service in requires order 2025-03-15 16:25:53 +07:00
โทสฺตัล 02600c4ac5 nixos/movim: improve systemd dependency directives 2025-03-15 16:25:52 +07:00
Mikael Voss 6a55cc63f3
akkoma-emoji.blobs_gg: move to top‐level & migrate to pkgs/by-name 2025-03-14 15:13:10 +01:00
Mikael Voss 4c17535c7b
akkoma-frontends.admin-fe: rename to akkoma-admin-fe & migrate to pkgs/by-name 2025-03-14 14:55:23 +01:00
Mikael Voss 30cbef7dc9
akkoma-fe: migrate to pkgs/by-name 2025-03-14 14:48:19 +01:00
Austin Horstman 14ee3b00fe
nixos/slskd: remove useless inotify watches (#389586) 2025-03-14 08:11:31 -05:00
Kerstin Humm c06efc8927
nixos/mastodon: some formatting 2025-03-13 16:51:55 +01:00
isabel c7968cf140
nixos/wakapi: harden systemd service
when using `systemd-analyze security wakapi.service` we went from a 5.9
to a 3.
2025-03-13 15:30:32 +00:00