Commit Graph

373 Commits

Author SHA1 Message Date
Will Fancher
7832429142 nixos/systemd: CPUAccounting is deprecated (#454999) 2025-10-31 07:16:53 +00:00
h7x4
784f704468 nixos/kubelet: lib.mapAttrsToList -> lib.attrValues 2025-10-26 15:33:34 +09:00
benaryorg
27323e52cc nixos/systemd: CPUAccounting is deprecated
systemd 258 has the following changes noted in systemd.resource-control(5):

> `CPUAccounting=` setting is deprecated, because it is always available on the unified cgroup hierarchy and such setting has no effect.

This commit removes it from the three services using it directly, as well as one instance of example text.

Signed-off-by: benaryorg <binary@benary.org>
2025-10-23 18:54:30 +00:00
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
sebkiro
1b22321e86 nixos/patroni: fix documentation link for settings and add example 2025-09-10 19:52:05 +02:00
Haylin Moore
cf540f8c98 treewide/nixos: move number typed port options to types.port 2025-09-08 15:27:19 +02:00
Marcus Ramberg
e801474809 nixos/k3s: use writableTmpDirAsHomeHook when pulling Helm charts (#440157) 2025-09-05 14:04:35 +02:00
Robert Rose
afb3105791 nixos/k3s: use writableTmpDirAsHomeHook when pulling Helm charts 2025-09-04 17:16:27 +02:00
Robert Rose
ee5c14470c k3s: passthru.airgapImages -> passthru.airgap-images 2025-09-04 14:52:57 +02:00
Wolfgang Walther
3685634b48 treewide: Fix links in module documentation (#436820) 2025-08-25 18:43:45 +00:00
dish
970dcca69c treewide: Fix links in module documentation 2025-08-25 12:55:11 -04:00
Jonathan Davies
397d5560f2 nixos/temporal: init module 2025-08-24 16:36:45 +00:00
Robert Rose
c8d099c63a nixos/k3s: remove usages of with builtins 2025-08-01 22:10:05 +02:00
Robert Rose
77ff2272cd nixos/k3s: fix undefined variable error 2025-08-01 22:10:04 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Alexandru Scvorțov
72cc5aa6f2 kubernetes: enable hairpinning in flannel config 2025-07-21 20:10:23 +01:00
nixpkgs-ci[bot]
8287b2917e Merge master into staging-next 2025-07-12 18:05:06 +00:00
Jost Alemann
3086227f72 nixos/k3s: fix typo 2025-07-09 23:10:04 +02:00
nixpkgs-ci[bot]
2d8cca0a45 Merge master into staging-next 2025-07-05 06:05:38 +00:00
Morgan Jones
2ba055ea87 util-linux, kubernetes, k3s: drop util-linux.withPatches (#421985) 2025-07-04 19:23:49 -07:00
nixpkgs-ci[bot]
4725dc1d5d Merge staging-next into staging 2025-07-03 18:06:42 +00:00
Sandro Jäckel
f88e1c39e9 treewide: move StartLimitIntervalSec/StartLimitBurst to unitConfig 2025-07-03 15:48:28 +02:00
Morgan Jones
949e299d24 kubernetes: use util-linuxMinimal instead of util-linux.withPatches
This, and commits to k3s and util-linux close #409339.
The util-linux.withPatches API was a temporary hack for the 25.05
release to fix Kubernetes, and is going away.

While we're at it, we should use util-linuxMinimal because we do not
need things such as systemd support for kubelet initialization.
2025-07-02 23:51:12 -07: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
Adam C. Stephens
8ec582950f nixos/patroni: assert on conflicts with postgresql.dataDir 2025-06-04 08:59:52 -04:00
Peder Bergebakken Sundt
c77ac9dfc3 treewide: fix typos 2025-06-02 16:07:07 +02:00
Morgan Jones
e14de85830 nixos/kubernetes: use util-linux.withPatches 2025-05-21 12:52:13 -07:00
Marcus Ramberg
f49e17dae8 nixos/k3s: support fetching helm charts from OCI registries (#404328) 2025-05-20 11:38:36 +02:00
Sumit Kumar
158d441ea0 rke2: fix validation message for agent token requirement
The message incorrectly stated that 'agentToken' or 'agentTokenFile' should be set when role is 'agent', which is misleading. Corrected it to state that these should NOT be set for the 'agent' role.
2025-05-19 18:54:45 +02:00
Robert Rose
f5efa59ad1 nixos/k3s: support fetching helm charts from OCI registries
This enables fetching Helm charts from OCI-based registries. OCI charts
will be detected by checking that the repo has a `oci://` prefix, the
behaviour for regular chart registries remains the same. The `name`
field can be omitted for OCI charts.
2025-05-05 12:01:28 +02:00
Robert Rose
4baad06ecf nixos/k3s: add default hash for autoDeployCharts module 2025-04-26 13:45:00 +02:00
Robert Rose
e77d893ef4 nixos/k3s: replace deprecated --no-deploy flag in option description 2025-04-03 11:01:47 +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
Marcus Ramberg
d07ebbab9b nixos/k3s: add autoDeployCharts option and use systemd-tmpfiles for content activation (#374017) 2025-03-15 11:26:43 +01:00
Peder Bergebakken Sundt
953f72e76e nixos/*: tag manpage references 2025-01-27 02:47:01 +01:00
Robert Rose
d3cd8299b4 nixos/k3s: use systemd-tmpfiles to activate k3s content
Formerly a `ExecStartPre` script was used to link k3s content.
Building the script got fairly messy and it had some footguns like
forgetting to create parent directories before linking or silent
overriding of existing links.
2025-01-23 16:34:35 +01:00
Robert Rose
95b894bad7 nixos/k3s: add autoDeployCharts option
The `autoDeployCharts` option further improves the auto deploying
capabilities of the k3s module by allowing to deploy and configure Helm charts
that are then instaled via the k3s Helm controller. Although this was
also previously possible by using auto deploying manifests, it required
some knowledge of the k3s Helm controller and led to a lot of
boilerplate code.
2025-01-23 16:34:35 +01:00
piegames
dd7d5339f7 treewide: Fix incorrect string indentations 2025-01-07 19:49:28 +01:00
Alexandru Scvortov
66ddf84c33 kubernetes: kubelet.extraConfig should be attrsOf json.type 2025-01-02 18:59:24 +00:00
illustris
814015be43 nixos/hadoop: fix HBase 2024-12-20 12:30:03 +05:30
Sandro
12c53e4e68 nixos/hadoop: fix, hadoop: 3.4.0 -> 3.4.1 (#364992) 2024-12-17 23:56:12 +01:00
Christina Sørensen
5d48167f78 nixos/kubernetes/kubelet: Fix sandbox image load on containerd 2.x (#364558) 2024-12-14 12:45:14 +01:00
illustris
c62ec80d1f hadoop, nixos/hadoop, nixosTests/hadoop: nixfmt 2024-12-14 00:31:48 +05:30
illustris
bdd10c641e nixos/hadoop: fix failing yarn tests 2024-12-13 23:18:14 +05:30
illustris
61dd3fdae2 nixos/hadoop: fix lib function calls 2024-12-13 23:12:15 +05:30
Sarah Brofeldt
278f0be608 nixos/kubernetes/kubelet: Fix sandbox image load on containerd 2.x 2024-12-13 10:21:12 +01:00
Robert Rose
759d2b8646 nixos/k3s: make assertions about missing configuration options warnings
It is possible to configure k3s in various ways (cli flags, env
variables, single config file, multiple config files) and everything is
merged together in a final config. The nixos module cannot know if a
configuration option that is missing from the module point of view is
supplied in another way, so it shouldn't assert missing configuration
options.
2024-12-11 22:29:21 +01: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
Philip Taron
0311f6c40e treewide/nixos: remove with lib; part 5 (#335647) 2024-12-09 16:04:21 -08:00
Marcus Ramberg
37da609352 nixos/k3s: add nftables to Path of k3s service (#360796) 2024-12-09 21:45:25 +01:00