391 Commits
Author SHA1 Message Date
rorosenandGitHub c0d2e7ccb9 nixos/rancher: add nodeExternalIP option to match nodeIP option (#505398) 2026-04-06 21:17:43 +00:00
rorosenandGitHub 26de40c5f3 nixos/rancher: fix warning (#505220) 2026-04-06 21:16:14 +00:00
sportshead 5d2994f470 nixos/rancher: add nodeExternalIP option to match nodeIP option
Relevant docs:
- [k3s](https://docs.k3s.io/cli/agent#networking)
- [rke2](https://docs.rke2.io/reference/server_config#agentnetworking)
2026-04-01 00:36:12 +08:00
Robert Rose df5a3c388d nixos/rancher: fix warning 2026-03-31 10:11:13 +02:00
bgl gwyngandClaude Opus 4.6 7dda3f6a84 nixos/rancher: fix warnings/assertions being silently dropped
lib.recursiveUpdate overwrites lists instead of merging them,
causing base module warnings and assertions to be silently dropped
by k3s.nix and rke2.nix. Replace with lib.mkMerge which properly
concatenates lists through the NixOS module system.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 16:03:01 +09:00
Silvan Mosberger b513ab8192 Reapply "ci: module maintainer review requests; nixos/modules: init meta.teams"
This reverts commit 2cc2e0225f.
2026-03-13 16:53:28 +01:00
Silvan MosbergerandGitHub 2cc2e0225f Revert "ci: module maintainer review requests; nixos/modules: init meta.teams" 2026-03-06 08:41:24 +01:00
Silvan Mosberger dbb164c759 nixos/modules: Use meta.teams over meta.maintainers = lib.teams.*.members
This allows getting the team itself requested for a review instead of
the individual members
2026-03-02 10:59:09 +01:00
DESPsyched 4b07e496c3 nixos/patroni: use lib.getExe 2026-02-23 01:37:18 -05:00
Dyego Aurélio 28096cc5e3 treewide: apply nixfmt 1.2.0 2026-01-22 18:37:56 -03:00
Johannes KirschbauerandGitHub a50507d174 nixos/apiserver: replace usage of lib.types.types by lib.types (#478117) 2026-01-19 12:16:44 +00:00
NAHO a2ed7e8d88 nixos: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --exclude doc/manual/release-notes \
      --type file \
      . \
      nixos \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2026-01-15 16:07:55 +01:00
Johannes Kirschbauer 9910a99ec2 nixos/apiserver: format file 2026-01-08 17:21:43 +01:00
Johannes Kirschbauer 1118754b6f nixos/apiserver: replace usage of lib.types.types by lib.types 2026-01-08 17:20:57 +01:00
Thomas Dy 7dd02e9964 nixos/kubernetes: fix infra image pinning
All kubernetes pods have an infra container (using `pause:latest`) to
setup networking etc. This image is loaded into containerd when kubelet
starts. However, due to a misconfiguration the image can get GC-ed and
kubelet tries to pull it from Docker Hub but the image does not exist
there. This prevents any new pods from being created.

Pinning of the infra image for kubernetes is delegated to the CRI
implementation (containerd) since Kubernetes 1.29, and the
`--pod-infra-container-image` flag does nothing and will be fully
removed in 1.35.

containerd (config version 2) uses the `sandbox_image` setting to know
what images to pin. However, while it normalizes `pause:latest` to
`docker.io/library/pause:latest` in the image list, it does not
normalize the setting value when checking if the image should be pinned
or not. Using the fully qualified name in the setting is enough to make
it be correctly pinned after a full containerd restart.
2025-12-15 16:45:03 +09:00
Johan Thomsen e94fa54b54 nixos/kubernetes: use nixos coredns package per default
- services.kubernetes.addons.dns.coredns is now
services.kubernetes.addons.dns.corednsImage
- the default value of the option is now a simple
dockerTools-buildImage
- added rel note for nixos 26.05
2025-12-10 19:45:49 +01:00
azey ac4abf7f7b nixos/rke2: merge with nixos/k3s
K3s module was moved from `nixos/.../k3s` to `nixos/.../rancher`.

`rke2/default.nix` was moved to `rancher/rke2.nix`, and some options from RKE2 were migrated into the common `default.nix` for backwards compatibility.

Manifest generation was also changed, instead of multi-doc YAML files the module now generates `kind: List` manifests.
2025-10-07 22:45:36 +02:00
azey 2ce16ee67e nixos/k3s: factor out generic functionality
Also slightly reworded a few option descriptions, commit prepares for merge with nixos/rke2.
2025-10-02 15:45:27 +02:00
Will FancherandGitHub 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 RambergandGitHub 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 WaltherandGitHub 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]andGitHub 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]andGitHub 2d8cca0a45 Merge master into staging-next 2025-07-05 06:05:38 +00:00
Morgan JonesandGitHub 2ba055ea87 util-linux, kubernetes, k3s: drop util-linux.withPatches (#421985) 2025-07-04 19:23:49 -07:00
nixpkgs-ci[bot]andGitHub 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 RambergandGitHub f49e17dae8 nixos/k3s: support fetching helm charts from OCI registries (#404328) 2025-05-20 11:38:36 +02:00
Sumit KumarandValentin Gagarin 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