Commit graph

2099 commits

Author SHA1 Message Date
June Stepp 56a1f9c4ca nixos/virtualbox-host: fix for kernels >= 6.12
A change in Linux 6.12 broke VirtualBox without an added kernel
parameter. VirtualBox version 7.2.2 has a fix, but it only works
for kernels >= 6.16.

(cherry picked from commit b04d39b01c)
2025-10-07 16:12:46 +00:00
Wolfgang Walther 5cbdb94f3a
treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.

(cherry picked from commit 91a8fee3aa)
2025-10-05 12:59:25 +02:00
Wolfgang Walther 1c6af9ba0a
treewide: remove unused with
Auto-fixed by nixf-diagnose.

(cherry picked from commit c283f32d29)
2025-10-05 12:38:28 +02:00
talyz bd35e1cb5f nixos/ec2-data: sshd.service -> sshd-keygen.service
SSH key generation was split out into its own systemd service in
https://github.com/NixOS/nixpkgs/pull/372979, but dependent service
definitions weren't updated.

The `apply-ec2-data` service needs to run before SSH key generation,
as it fetches host keys defined in ec2 user data and these keys should
take priority over generating new ones. Currently, the ordering
doesn't specify which should run first of `apply-ec2-data` and
`sshd-keygen`; in practice it seems that `sshd-keygen` often wins the
race, though.

Update the dependencies so that `apply-ec2-data` always runs first.

(cherry picked from commit d9ac3ba30b)
2025-09-20 09:05:48 +00:00
Yethal 8409a094b3 virtualisation/oci-containers: fix podman systemd service name
(cherry picked from commit 68710f4064)
2025-08-11 16:39:49 +00:00
Wolfgang Walther aefcb0d50d
treewide: run nixfmt 1.0.0 2025-07-24 14:58:18 +02:00
phaer f1ddf462ce virtualisation/disk-image: fix image.extension
(cherry picked from commit b033e0c4b6)
2025-07-18 18:35:44 +00:00
Wolfgang Walther 0c6f155d56
[release-25.05] xen: 4.19.1 -> 4.19.2 (#406036) 2025-06-27 19:35:47 +00:00
Fernando Rodrigues 54dadb2a62
nixos/xen: dehardcode the .pad section from the UKI builder
Upstream, intentionally or not, no longer appends the EFI image
with a .pad section for us to hook the rest of the UKI to. This
simply dehardcodes .pad from the awk script, instead using the
very last section in the binary. (Currently .reloc)

Co-authored-by: Yaroslav Bolyukin <iam@lach.pw>
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-06-24 11:13:02 -03:00
wxt 39d00bd276 nixos/waydroid: allow override waydroid
(cherry picked from commit ee0937ff0d)
2025-06-24 13:37:31 +00:00
MakiseKurisu ff08d75496 nixos/incus: update AppArmor profile for new versions
(cherry picked from commit dd5faa98ae)
2025-06-18 09:51:21 +00:00
Rafael Fernández López 9e6003f0d5 virtualisation/docker: fix nvidia container wrapper
(cherry picked from commit 7e42e4431b)
2025-05-27 09:35:26 +00:00
Arne Keller 4d4f8628cd
nixos/libvirtd: Use preferred version of iptables (#228625) 2025-05-10 22:23:51 +02:00
Zhaofeng Li 13bb852869 nixos/libvirtd: Use preferred version of iptables 2025-05-10 12:49:47 -06:00
codgician 16a7d7e982
waagent: support AutoUpdate.UpdateToLatestVersion in module 2025-05-07 17:07:53 +08:00
r-vdp eec01220a4
nixos/qemu-guest-agent: fix udevadm verify issues 2025-05-05 12:08:59 +02:00
Maximilian Bosch b539370717
Merge: nixos/oci-containers: stricter dependencies for rootless containers with sdnotify=healthy (#394039) 2025-05-02 19:46:44 +02:00
Maximilian Bosch 344ee0cf07
nixos/oci-containers: stricter dependencies for rootless containers with sdnotify=healthy
After running this configuration for a while, we
noticed that the containers didn't get back up once and the services
failed with the following error:

    Error: current system boot ID differs from cached boot ID; an unhandled reboot has occurred.

This is hard to reproduce and seems to be a timing issue. However,
the logs indicated another issue that this patch now solves:

* The ExecStartPost= indicated that the user session got stopped before
  which is required or sdnotify=healthy. Add explicit ordering for
  user@. This unfortunately requires a statically declared uid.
2025-04-30 14:23:25 +02:00
illustris 5803bdb9fc
Revert "Use mkImageMediaOverride for filesystem attributes of various images" 2025-04-29 08:41:26 +05:30
Maximilian Bosch 9cd14670ad
nixos/oci-containers: escape login.username
When using e.g. GitLab as container registry, the token name may be the
username. However, the token name can contain special characters
including spaces breaking the registry login like this:

    Apr 25 15:35:48 test42 pre-start[294091]: image doesn't exist locally and login failed
    Apr 25 15:35:52 test42 pre-start[294289]: Error: accepts at most 1 arg(s), received 2
    Apr 25 15:35:52 test42 pre-start[294297]: Error: registry.example.com/foo/bar/baz: image not known

Applying `escapeShellArg` on it fixes the problem.
2025-04-25 15:39:00 +02:00
jopejoe1 e6d927fcfd
cloudstack: add to image/images (#398556) 2025-04-24 19:03:53 +02:00
jopejoe1 326702f8bb
Use mkImageMediaOverride for filesystem attributes of various images (#397330) 2025-04-24 18:54:06 +02:00
lassulus b8d7097244
nixos/containers: fix shell error when privateUsers=no (#396174) 2025-04-18 17:53:51 -07:00
Aleksana af39bcec09
gce-images: drop (#396780) 2025-04-17 09:49:14 +08:00
phaer d7e76ed0a2 cloudstack: add to image/images
This was an oversight in https://github.com/NixOS/nixpkgs/pull/347275,
so it's currently missing from the variants listed in nixos-rebuild build-image
2025-04-14 14:03:58 +02:00
phaer 887f7d33e0 virtualisation/openstack: use mkImageMediaOverride...
...for filesystem options. Before this change,
users would typically encounter conflicting option definitions
when trying to build an image for a generic nixos closure, i.e.
`nixos-rebuild build-image --image-variant openstack-zfs --flake .#my-host`
2025-04-11 14:33:45 +02:00
phaer 6f83796aa5 virtualisation/google-compute-config: use mkImageMediaOverride...
...for filesystem and bootloader options. Before this change,
users would typically encounter conflicting option definitions
when trying to build an image for a generic nixos closure, i.e.
`nixos-rebuild build-image --image-variant google-compute-config --flake .#my-host`
2025-04-11 12:54:12 +02:00
phaer bf2b3f0286 virtualisation/digital-ocean-config: use mkImageMediaOverride...
...for filesystem options. Before this change,
users would typically encounter conflicting option definitions
when trying to build an image for a generic nixos closure, i.e.
`nixos-rebuild build-image --image-variant digital-ocean --flake .#my-host`
2025-04-11 12:54:12 +02:00
phaer a79571b081 virtualisation/azure-image: use mkImageMediaOverride...
...for filesystem options. Before this change,
users would typically encounter conflicting option definitions
when trying to build an image for a generic nixos closure, i.e.
`nixos-rebuild build-image --image-variant azure --flake .#my-host`
2025-04-11 12:54:12 +02:00
phaer 2f7435b5ca virtualisation/hyperv-image: use mkImageMediaOverride...
...for filesystem options. Before this change,
users would typically encounter conflicting option definitions
when trying to build an image for a generic nixos closure, i.e.
`nixos-rebuild build-image --image-variant hyperv --flake .#my-host`
2025-04-11 12:54:12 +02:00
phaer 61ba044658 virtualisation/oci-common: use mkImageMediaOverride...
...for filesystem options. Before this change,
users would typically encounter conflicting option definitions
when trying to build an image for a generic nixos closure, i.e.
`nixos-rebuild build-image --image-variant common --flake .#my-host`
2025-04-11 12:54:12 +02:00
phaer 2742c7163a virtualisation/kubevirt: use mkImageMediaOverride...
...for filesystem  options. Before this change,
users would typically encounter conflicting option definitions
when trying to build an image for a generic nixos closure, i.e.
`nixos-rebuild build-image --image-variant kubevirt --flake .#my-host`
2025-04-11 12:54:12 +02:00
phaer 4327e179f7 virtualisation/virtualbox-image: use mkImageMediaOverride...
...for filesystem and options. Before this change,
users would typically encounter conflicting option definitions
when trying to build an image for a generic nixos closure, i.e.
`nixos-rebuild build-image --image-variant virtualbox --flake .#my-host`
2025-04-11 12:54:12 +02:00
phaer 864030e5e8 virtualisation/vmware-image: use mkImageMediaOverride...
...for filesystem options. Before this change, users would typically encounter conflicting option definitions when trying to build an image for a generic nixos closure, i.e. `nixos-rebuild build-image --image-variant vmware --flake .#my-host`
2025-04-11 12:54:11 +02:00
phaer c5d383a797 virtualisation/disk-image: use mkImageMediaOverride...
...for filesystem options. Before this change, users would typically encounter conflicting option definitions when trying to build an image for a generic nixos closure, i.e. `nixos-rebuild build-image --image-variant qemu --flake .#my-host`
2025-04-11 12:54:11 +02:00
phaer 3718f356c0 virtualisation/promxox-image: use mkImageMediaOverride...
...for filesystem options. Before this change,
users would typically encounter conflicting option definitions
when trying to build an image for a generic nixos closure, i.e.
`nixos-rebuild build-image --image-variant proxmox --flake .#my-host`
2025-04-11 12:54:11 +02:00
phaer ae02740156 virtualisation/proxmox-image: remove obsolete proxmox.qemuConf.diskSize usage
This was an oversight in my commit
d37a3ea1ef, and results in the following
eval warning when proxmox images are used: `Obsolete option
`proxmox.qemuConf.diskSize' is used. It was renamed to
`virtualisation.diskSize'.`
2025-04-11 12:54:11 +02:00
phaer 9e704d7263 virtualisation/linode-config: use mkImageMediaOverride...
...for filesystem options. Before this change, users would typically encounter conflicting option definitions when trying to build an image for a generic nixos closure, i.e. `nixos-rebuild build-image --image-variant linode --flake .#my-host`
2025-04-11 12:54:11 +02:00
phaer a80eca86d5 virtualisation/linode-config: drop "with; lib" 2025-04-11 12:35:41 +02:00
Franz Pletz 70f67d28f7
nixos/virtualisation: add contents setting to googleComputeImage (#393749) 2025-04-09 13:55:55 +02:00
Adam Chance 38f2ca6b80 nixos/virtualisation: add contents setting to googleComputeImage
Allow placing files and directories in the image
2025-04-08 11:33:50 +01:00
phaer 8bdc44ec9a gce-images: drop
It's hopefully out-dated, "latest" release points to 20.09 and no
in-tree usage could be found. Feel free to update and re-introduce if
needed.
2025-04-07 11:22:52 +02:00
Louis Opter 9d3a171dbf nixos/containers: fix shell error when privateUsers=no
Details in #387773.
2025-04-05 00:36:42 +00:00
Adam C. Stephens 21197daa39
incus: build and expose documentation 2025-04-03 16:00:08 +00: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
Adam C. Stephens 62d611a22b
nixos/incus: add AppArmor rules (#386060) 2025-04-01 12:51:34 -04:00
Adam C. Stephens 9ff6900615
incus: 6.10.1 -> 6.11.0
https://discuss.linuxcontainers.org/t/incus-6-11-has-been-released/23322
https://github.com/lxc/incus/releases/tag/v6.11.0
2025-03-28 16:58:33 -04:00
MakiseKurisu 9b7d65ad87
nixos/incus: add AppArmor rules to allow access to Nix store
Fix #350012
2025-03-26 21:01:14 +08:00
Arian van Putten 12c098f0ca nixos/amazon-ec2-amis: remove 2025-03-22 12:25:18 +00:00
Robert Hensing 202ac0e3d2
nixos: Cut off virtualisation.vmVariant.virtualisation.vmVariant (#390717) 2025-03-21 15:58:59 +00:00