2182 Commits

Author SHA1 Message Date
Adam C. Stephens
ba01a5e806 nixosTests.lxc: fix lxc test and move to runTestOn (#460219) 2025-11-12 05:37:04 +00:00
Adam C. Stephens
0cd29d61c5 nixosTests.lxc: fix lxc test 2025-11-11 22:37:04 -05:00
Jörg Thalheim
2fb323f46c nixos/google-compute-image: add buildMemSize option (#452390) 2025-11-11 08:38:12 +00:00
Adam C. Stephens
099cd0e1fb nixos/tests/incus: present instances as a submodule 2025-11-08 09:18:52 -05:00
Will Fancher
7832429142 nixos/systemd: CPUAccounting is deprecated (#454999) 2025-10-31 07:16:53 +00:00
Paul Haerle
69efa56d95 virtualisation/qemu: Respect virtualisation.diskSize with useBootLoader (#449945) 2025-10-27 14:13:34 +01:00
éclairevoyant
098c4d08d7 nixos/waydroid: use waydroid-nftables by default if nftables is enabled 2025-10-24 19:52:04 -04: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
Peter Bynum
da2060bdc1 Allocate virtualisation.diskSize with useBootLoader 2025-10-23 10:20:58 -04:00
Lukas Wurzinger
1f4c50ab81 lib/cli: deprecate toGNUCommandLine 2025-10-21 21:01:38 +02:00
Sandro
084b1f8ec5 treewide: ensure ExecReload kill fields has absolute path (#453135) 2025-10-21 15:08:46 +00:00
Sandro
d4cc7f2385 nixos/virtualisation/podman: add completion for dockerCompat (#446817) 2025-10-21 15:04:41 +00:00
h7x4
1cdf4ba1c8 treewide: ensure ExecReload kill fields has absolute path 2025-10-18 15:00:59 +09:00
Victor Fuentes
0234fbb0b1 nixos/google-compute-image: add buildMemSize option 2025-10-15 15:08:07 -07:00
Victor Engmark
e9d4990ab1 nixos-container: Conform to ShellCheck 2025-10-09 18:18:44 +02:00
Alexandre Esteves
cf818acac3 nixos/virtualbox-host: fix for kernels >= 6.12 (#444438) 2025-10-07 16:08:45 +00: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
Weijia Wang
cd5ef1ea27 prl-tools: 26.0.1-57243 -> 26.1.1-57288 (#448165) 2025-10-04 13:50:06 +00:00
codgician
cf2677a918 prl-tools: 26.0.1-57243 -> 26.1.1-57288 2025-10-04 18:20:59 +08:00
Maximilian Bosch
a6b0564b7d nixos/filesystems: fix special file-systems for systemd-nspawn (#345899) 2025-10-03 19:33:31 +00:00
Pascal Bach
4614820299 nixos/libvirtd: Make all OVMF images from QEMU package available (#421549) 2025-10-03 18:27:13 +00:00
definfo
6f339bd25b nixos/virtualisation/podman: add shell completions for podman dockerCompat
This can fix shell completion for `podman.dockerCompat`.
2025-10-03 21:31:41 +08:00
xanderio
15a7cb4502 nixos: fix 'do not exist' typos (#434317) 2025-09-29 08:59:22 +00:00
Moraxyc
1368a8174d nixos/incus,incus{,-lts}: add multi-platform incus-agent support 2025-09-26 23:40:32 +08:00
Berk D. Demir
e744158bf0 nixos/libvirtd: Make all OVMF images from QEMU package available
- Make OVMF firmware images distributed with QEMU available under
/run/libvirt/nix-ovmf directory

- Repackage OVMF firmware metadata JSON files from QEMU package,
  patching the image file locations to point to stable
  /run/libvirt/nix-ovmf rather than the nix store path of QEMU package.

  And make them available at /var/lib/qemu/firmware, the path libvirt
  uses to verify domain configuration.

- Remove now obsolete `nvram` entry from qemu.conf.
  It was removed by upstream in Nov 2019.
  Eliminates log spam from libvirtd.service.

Fixes #378894
2025-09-23 16:51:48 -07:00
h7x4
3f78de8457 nixos/nixos-containers: use types.port 2025-09-22 16:33:03 +02:00
Maximilian Bosch
a532cb052e nixos/containers: add boot.isNspawnContainer option
There are a bunch of components such as incus or LXC that also use
`boot.isContainer`, so we'd have to differentiate between "OS container"
and "actually nspawn".

This became necessary for the file-systems part where nspawn takes care
of setting up special filesystems like `/proc`, `/dev` etc., but others
don't.

To allow for a `boot.isContainer` being less overloaded, this introduces
`boot.isNspawnContainer` that is exclusively used for nspawn-specific
things. When `true`, `boot.isContainer = true;` is implied.
2025-09-21 13:26:23 +02:00
Adam C. Stephens
886fdecdc4 nixos/incus: avoid restart on switch for incus-startup
This service exists to avoid extra instance restarts. While its dependencies
are slim, there are still some, so disable restartIfChanged to avoid any
switches from affecting instances.
2025-09-20 16:05:17 -04:00
Matt Sturgeon
c97cfb38e6 fix(podman): add mandatory runtime dependencies (#444116) 2025-09-20 16:59:38 +00:00
Arian van Putten
0f3383ef02 nixos/ec2-data: sshd.service -> sshd-keygen.service (#444040) 2025-09-20 06:59:31 +00:00
June Stepp
b04d39b01c 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.
2025-09-19 15:22:32 -05:00
Augusto Melo
0efb0c9c81 fix: add mandatory runtime dependencies
https://podman.io/docs/installation#building-from-source
2025-09-18 21:09:11 +01:00
talyz
d9ac3ba30b 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.
2025-09-18 15:33:06 +02:00
René Neumann
c26558c5cc nixos/podman: Introduce new option extraRuntimes
This disables the hard, not overridable, dependency on `runc`.
It also sharpens the description of `extraPackages` to highlight the
difference between those options.

Fixes #443274.
2025-09-18 14:19:18 +02:00
Adam C. Stephens
ec17e680af lxd: remove packages and modules 2025-09-13 12:47:00 -04:00
Adam C. Stephens
7eef130c2c nixos/lxd: remove container and virtual-machine releases 2025-09-13 12:44:42 -04:00
Will Fancher
af1b121a0d nixos/top-level: Install 'bootStage2' as 'init' in all non-initrd configs (#441777) 2025-09-10 14:39:32 +00:00
Will Fancher
6b5020dc9c nixos/top-level: Install 'bootStage2' as 'init' in all non-initrd configs
Eventually we'd like to change our posture on this, and somehow ensure
that 'init' is always our systemd binary, but for now containers
require us to do it this way.
2025-09-10 09:45:48 -04:00
Haylin Moore
cf540f8c98 treewide/nixos: move number typed port options to types.port 2025-09-08 15:27:19 +02:00
DSeeLP
b30ba513b0 nixos/podman: use nftables as firewall when enabled 2025-09-07 21:10:05 +02:00
DSeeLP
57f735a19b podman: move iptables to virtualisation.podman.extraPackages 2025-09-07 20:56:44 +02:00
Lach
a9e8eff4e4 nixos/xen: mark qemu as hiPrio
If user already has qemu installed in their system, there might be a collision between normal qemu-system-i386, and qemu-system-i386 with Xen support enabled

In this case, we want Xen supported qemu to win, as otherwise systems won't start with the configuration we provide in NixOS wiki
2025-09-05 18:32:31 +02:00
Paul Haerle
160448060e Add Xen multiboot kernel to bootspec and package, refactor boot options, add xen bootspec support to Limine (#393287) 2025-09-02 13:07:11 +02:00
codgician
1bf746568e nixos/parallels-guest: remove unnecessary systemd user services 2025-08-31 23:21:44 +08:00
codgician
df87bc3814 linuxPackages_latest.prl-tools: 20.4.1-55996 -> 26.0.0-57238 2025-08-30 16:01:17 +08:00
Rane
c0dcc49d24 nixos/xen: Add v2 bootspec extension with multiboot support 2025-08-30 14:43:42 +10:00
Emily
7c4b56bd12 nixos/nixos-containers: actually eliminate costs if no containers are used (#427001) 2025-08-25 19:53:32 +01:00
dish
970dcca69c treewide: Fix links in module documentation 2025-08-25 12:55:11 -04:00
Will Fancher
8fc8c3e12e nixos/qemu-vm: Default configuration for empty disk image qemu devices. 2025-08-25 02:30:24 -04:00