Commit graph

432 commits

Author SHA1 Message Date
Spencer Janssen 82bd28b068 nixos/github-runner: fix nodeRuntimes option
Fixes #434830.

Drops backwards compatibility workaround introduced in #286063.
2025-10-20 23:40:39 -05:00
Pol Dellaiera 985ab75c84 nixos/gitlab-runner: fix broken link 2025-10-15 20:38:56 +02:00
Pol Dellaiera 38b1c19ecd nixos/gitlab-runner: clarify the use of extraPackages 2025-10-15 20:38:56 +02:00
Sandro 15fee7ddd0
nixos/jenkins: Apply more hardening settings (#449222) 2025-10-13 13:09:20 +00:00
Bruno BELANYI 1ddff489f4
woodpecker: add marcusramberg to maintainers (#451490) 2025-10-13 07:30:25 +00:00
Marcus Ramberg 5269799dae
nixos/woodpecker: add marcusramberg to maintainers 2025-10-13 00:52:13 +02:00
Sandro abe2eb7252
radicle-ci-broker: init at 0.21.0, radicle-native-ci: init at 0.11.1 (#436583) 2025-10-11 18:43:55 +00:00
Felix Singer 01a263c29a nixos/jenkins: Enable MountAPIVFS hardening in service config
This setting is already implied by others, but add it for completeness
as well. For documentation see
https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#MountAPIVFS=

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-10-07 16:08:48 +02:00
Felix Singer d62c46fec7 nixos/jenkins: Enable PrivateUsers hardening in service config
For documentation see
https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#PrivateUsers=

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-10-07 16:08:18 +02:00
Felix Singer bfae9b0212 nixos/jenkins: Set ProtectProc to invisible
For documentation see
https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#ProtectProc=

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-10-07 16:07:30 +02:00
Felix Singer d969bdbeda nixos/jenkins: Set ProtectControlGroups to strict
For documentation see
https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#ProtectControlGroups=

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-10-07 16:06:50 +02:00
Felix Singer 6cece348c4 nixos/jenkins: Ensure proper permissions for cache directory
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-10-07 16:06:10 +02:00
Felix Singer 8765032b50 nixos/jenkins: Ensure proper permissions for state directory
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-10-07 16:06:10 +02:00
Felix Singer e944cc6269 nixos/jenkins: Configure system group in service config
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-10-06 20:17:59 +02:00
Wolfgang Walther 91a8fee3aa
treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther c283f32d29
treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
Felix Bühler 99b9c9c053
nixos/github-runner: use apply to override package (#428418) 2025-10-01 19:08:08 +00:00
Defelo 125dc2330e
nixos/radicle-native-ci: init module 2025-09-26 20:02:10 +02:00
Defelo acb76ed4d1
nixos/radicle-ci-broker: init module 2025-09-26 20:02:10 +02:00
Pol Dellaiera ea27db1959
various: use types.port instead of types.int (#445243) 2025-09-22 19:49:35 +00:00
Niklas Korz 2d5317c1a0
nixos/jenkins: Apply hardening options (#435751) 2025-09-22 16:48:34 +00:00
h7x4 a3cd28b23e
nixos/buildbot: use types.port 2025-09-22 16:46:42 +02:00
h7x4 7c06f21739
nixos/gocd-server: use types.port 2025-09-22 16:32:59 +02:00
h7x4 4ba3f60b8a
various: use mkPackageOption 2025-09-22 02:46:54 +02:00
Felix Singer 53aeea03a8 nixos/jenkins: Apply hardening options
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-09-11 08:00:35 +02:00
Aaron Andersen 61308fbb16
github-runner: add support for node24 (#434377) 2025-08-26 12:58:35 -04:00
dish 970dcca69c
treewide: Fix links in module documentation 2025-08-25 12:55:11 -04:00
Spencer Janssen 19a7b08ea7 github-runner: add support for node24
Fixes #434372
2025-08-18 13:30:44 -05:00
name_snrl 5d57f60991 nixos/github-runner: use apply to override package
These changes allow users to reference the final package
2025-07-26 03:31:48 +09:00
Wolfgang Walther 5a0711127c
treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
kiara 103ee4e1cf
nixos/woodpecker: fix documentation links (#427705) 2025-07-23 18:33:21 +08:00
Sandro Jäckel c265181102
nixos/hydra: replace nettools with hostname-debian
Motivated by https://github.com/NixOS/hydra/pull/1493
2025-07-16 18:50:06 +02:00
K900 5985f13b69 Merge remote-tracking branch 'origin/staging-next' into staging 2025-06-27 21:07:44 +03:00
Wolfgang Walther 41c5662cbe
nixos/postgresql: move postStart into separate unit
This avoids restarting the postgresql server, when only ensureDatabases
or ensureUsers have been changed. It will also allow to properly wait
for recovery to finish later.

To wait for "postgresql is ready" in other services, we now provide a
postgresql.target.

Resolves #400018

Co-authored-by: Marcel <me@m4rc3l.de>
2025-06-24 15:26:47 +02:00
zimbatm 39c01d22bf net-tools: rename from nettools
By being in sync with the pname, it makes it easier to walk back from
the pname that shows in the /nix/store back to the attribute.

This change should not cause any rebuild.
2025-06-21 19:57:36 +02:00
Felix Singer d1f0807db5 nixos/jenkins: Bump Java version to 21
Java 17 goes EOL in September 2026 and Jenkins already supports Java 21.
So bump the Java version to 21.

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-05-30 23:06:36 +02:00
Felix Singer 131d83ea6a nixos/jenkins: Introduce and make use of javaPackage option
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-05-30 22:37:11 +02:00
Felix Singer fbd42376f9 nixos/jenkins: Make use of mkEnableOption
Signed-off-by: Felix Singer <felixsinger@posteo.net>
2025-05-30 22:27:27 +02:00
Wolfgang Walther f934044282
nixos/hydra: avoid conflicts for local postgres ident map
The key change here is, that the match was on the hydra database only
previously, but is now limited to to the hydra role instead. This avoids
conflicts with rules that are created by other modules or downstream
users.

With this change, we can remove the additional "postgres postgres" line,
because the default pg_hba line will kick in again and allow the
postgres user access to the postgres role.

Renaming the map from hydra-users to hydra is for consistency, so that
all modules can define maps matching in name with the role they manage.

The change from ident to peer is just cosmetic, ident is only used for
TCP connections and falls back to peer anyway.
2025-05-10 10:32:47 +02:00
fleaz 8638793548 nixos/gitlab-runner: Add dockerPullPolicy option 2025-05-09 09:34:00 +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
Sandro Jäckel 588f41bef0
nixos/hydra: fix race condition in hydra-compress-logs
Source https://github.com/NixOS/hydra/pull/1450
2025-03-17 15:41:00 +01:00
shelvacu 1a4575f9db
nixos/modules: Add security.pki.caBundle option and make all services use it for CA bundles (#352244)
Previously some modules used `config.environment.etc."ssl/certs/ca-certificates.crt".source`, some used `"/etc/ssl/certs/ca-certificates.crt"`, and some used `"${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"`. These were all bad in one way or another:

- `config.environment.etc."ssl/certs/ca-certificates.crt".source` relies on `source` being set; if `text` is set instead this breaks, introducing a weird undocumented requirement
- `"/etc/ssl/certs/ca-certificates.crt"` is probably okay but very un-nix. It's a magic string, and the path doesn't change when the file changes (and so you can't trigger service reloads, for example, when the contents change in a new system activation)
- `"${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"` silently doesn't include the options from `security.pki`

Co-authored-by: Shelvacu <git@shelvacu.com>
2025-03-08 08:41:08 +00:00
Philip Taron 6630c758e0
nixos/hydra: fix hydra-compress-logs choking up on quoting when using zstd (#363980) 2024-12-31 12:22:57 -08:00
Sandro Jäckel eb46f107af
nixos/hydra: fix hydra-compress-logs choking up on quoting when using zstd 2024-12-26 23:58:11 +01:00
nicoo f6c5531461
nixos: Don't set !allowSubstitutes (#314664)
It is set by `runCommandLocal` and prevents fetching the build output
from `cache.nixos.org` or another trusted substituter.
2024-12-12 18:26:24 +00:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Felix Buehler 67553951b1 nixos/services.gocd-agent: remove with lib; 2024-12-08 13:21:50 +01:00
Felix Buehler d575253885 nixos/services.github-runners: remove with lib; 2024-12-08 13:21:50 +01:00
Felix Buehler 5ee4c4b0a1 nixos/services.buildbot-worker: remove with lib; 2024-12-08 13:21:50 +01:00