This project contains everything to setup yourself a mirror of https://nixos.wiki/
Go to file
2024-04-16 10:13:39 +02:00
checks fix nixos test 2023-12-27 15:24:40 +01:00
modules backup: also start wiki-dump in backup method 2024-04-05 15:37:24 +02:00
targets accept terraform arguments in apply 2024-04-16 10:13:39 +02:00
terraform treefmt 2024-03-03 11:29:08 +01:00
.envrc add envrc 2024-02-09 12:02:11 +01:00
.envrc.private-template template: update hetzner cloud project id 2024-02-09 11:58:00 +01:00
.gitignore Put gitignore at the correct place 2024-02-12 11:09:58 +01:00
.mergify.yml add mergify 2023-10-24 17:58:03 +02:00
.sops.yaml update target name in .sops.yaml 2024-02-17 18:43:02 +01:00
flake.lock chore(deps): lock file maintenance 2024-04-08 01:59:22 +00:00
flake.nix flake.nix: drop incorrect comment 2024-02-20 07:51:04 +01:00
LICENSE.md add license 2023-10-24 17:57:46 +02:00
oauth-permissions.png add oauth permissions picture 2024-04-02 10:42:00 +02:00
README.md Add roles section to readme 2024-04-04 13:17:45 +02:00
renovate.json renovate: enable nix 2024-04-03 13:02:16 +02:00

nixos-wiki-infra

This project contains the setup of https://wiki.nixos.org

Examples

Checkout ./targets/nixos-wiki.nixos.org for an example terraform deployment on hetzner cloud.

Downloading a dump of the wiki

This is useful if you want to run your own instance. Every day an xml dump is updated here:

https://wiki.nixos.org/wikidump.xml.zst

Restoring from a backup (wiki admins only)

$ systemctl stop phpfpm-mediawiki.service
$ borg-job-wiki list
$ borg-job-wiki mount u391032-sub1@u391032.your-storagebox.de:wiki.nixos.org/repo::wiki-wiki-2024-04-01T12:40:37 /tmp/restore
$ ls -la /tmp/restore/var/lib/mediawiki/backup/
$ sudo dropdb db
$ sudo -u postgres dropdb mediawiki
$ systemctl restart postgresql.service
$ sudo -u postgres pg_restore -d mediawiki < /tmp/restore/var/lib/mediawiki/backup/db
$ systemctl start phpfpm-mediawiki.service
$ ls -la /tmp/restore/var/lib/mediawiki-uploads/
$ umount /tmp/restore/

FAQ:

When logging in with "Github auth", the app shows "Act on your behalf" as a permission.

We created the Oauth app with read-only access and minimal permissions:

Unfortunally GitHub mis-represents this information. Read more about this issue here: https://github.com/orgs/community/discussions/37117

Join our Matrix

https://matrix.to/#/#wiki:nixos.org

Roles

Currently, the users having priviledged roles on the wiki are:

Administrators

Moderators

Trusted users (can delete pages)