Commit Graph

2153 Commits

Author SHA1 Message Date
h7x4
3f78de8457 nixos/nixos-containers: use types.port 2025-09-22 16:33:03 +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
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
zimward
29be71ca49 nixos/nixos-containers: actually eliminate costs if no containers are used 2025-08-24 22:16:29 +02:00
Will Fancher
ec44a39a38 nixos/qemu-vm: Allow configuration of empty disk image qemu devices. 2025-08-24 15:32:29 -04:00
Jenny
bc51535691 Enable Virtualbox guest additions for AARCH64 (#420556) 2025-08-19 12:05:11 +02:00
clarkadamp
e9cf094eb4 nixos/oci-containers: deduplicate network list (#427978) 2025-08-12 14:02:17 +02:00
Menken Philipp
bb36ed77b8 nixos/virtualbox: Enable virtualbox guest additions module on aarch64 2025-08-11 22:14:21 +02:00
Maximilian Bosch
0dd4477d19 Merge: Fix: Correct podman systemd service name (#425170) 2025-08-11 18:39:10 +02:00
André Lima
28d3245201 nixos/libvirtd: allow changing firewall backend 2025-08-10 21:06:54 +01:00
Yethal
68710f4064 virtualisation/oci-containers: fix podman systemd service name 2025-08-04 10:01:24 +02:00
nicoo
19c9496c3e nixos/oci-containers: clean-up dependsOn example
This is more compact, and removes a syntax error.
2025-08-01 10:28:53 +02:00
nicoo
79b1189b5d nixos/oci-containers: remove overuse of literalExpression
This forced examples to be typeset with extraneous linebreaks,
as well as failed to detect syntax errors in examples.
2025-08-01 10:27:41 +02:00
Philip Taron
71d8c89d62 qemu-vm: create erofs with hard-dereference flag (#395494) 2025-07-24 05:32:39 -07:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Paul Meyer
bd184be272 qemu-vm: create erofs with hard-dereference flag
This will ensure reproducibility between different nixos systems, where
one system has store optimization enabled (which will hardling similar
files in the nix store) and the other doesn't. Without the flag, the
same image, built on the two different systems, will have a different
number of inodes. The flag will dereference hardlinks and copy them
into the image as different inodes.

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
2025-07-24 07:46:37 +02:00
phaer
b033e0c4b6 virtualisation/disk-image: fix image.extension 2025-07-18 11:12:09 -07:00
Rafael Fernández López
117bbae49c nvidia-container-toolkit: reintroduce nvidia runtime wrappers
This allows users to keep using `docker run --gpus`. Despite CDI is
the recommended way to expose GPU's to containers nowadays, allow
users to keep using the old `--gpus` method.
2025-07-16 22:38:11 +02:00
nixpkgs-ci[bot]
8d8db2ff25 Merge master into staging-next 2025-07-12 00:17:12 +00:00
Philip Taron
8279ffe622 treewide: specify that mebibytes are used when it's ambiguous (#424169) 2025-07-11 12:29:33 -07:00
Axel Karjalainen
7159ab6f43 treewide: specify where mebibytes are used when it's ambiguous 2025-07-11 00:44:23 +03:00
K900
b960b040a2 Merge remote-tracking branch 'origin/master' into staging-next 2025-07-08 15:12:10 +03:00
Sandro
30c1ef051b nixos/ec2-data: fix eval 2025-07-08 11:57:40 +02:00
K900
e2c8c4260d Merge remote-tracking branch 'origin/master' into staging-next 2025-07-07 10:09:49 +03:00
jade
f43a088157 nixos-containers: Added flake option (#413463) 2025-07-06 19:24:39 -07:00
Gwendolyn Kornak
b5b04bb146 nixos/nixos-containers: add flake to container start script
Integrated the flake container setup into the spawn script for systemd-nspawn.
The trickiest part of this was ensuring the underlying per-container is built.
With the .conf file created, running `nixos-container update` creates all the necessary per-container structure.
We call this command at start to ensure the structure is created only if the per-container system isnt there.
Note: This also means the flake gets updated to branch HEAD when the container is started for the first time.
2025-07-05 17:22:15 -07:00
Gwendolyn Kornak
9a3173dacd nixos/nixos-containers: add flake option
While the nixos-container command allows for the creation of containers pointing to a flake, the declarative module doesn't have this option.
Adds the flake option for nixos-container declarative approach. Creates the /etc/nixos-container .conf file similar to how the command preforms it.
2025-07-05 17:21:37 -07:00
Martin Weinelt
c21be3563e nixos/ec2-data: use hostname-debian to set hostname from metadata
This is the simpler, more lightweight and better maintained version of
the hostname utility.
2025-07-04 06:53:11 +02: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
nixpkgs-ci[bot]
e17ff436c8 Merge staging-next into staging 2025-07-01 18:06:27 +00:00