Talk:NixOS Containers: Difference between revisions

Host Configuration: new section
Arcstur (talk | contribs)
 
(3 intermediate revisions by 2 users not shown)
Line 6: Line 6:


The correct value when using nftables should be "ve-*": [[User:Cookie|Cookie_Cocoa]] ([[User talk:Cookie|talk]]) 06:44, 8 May 2026 (UTC)
The correct value when using nftables should be "ve-*": [[User:Cookie|Cookie_Cocoa]] ([[User talk:Cookie|talk]]) 06:44, 8 May 2026 (UTC)
:Hi, I added this as a comment in the nat sections. May I ask, do you have a source for this (any link we could put under the comment)? The only mention of it seems to be in the old nixos.wiki page for nixos-containers. [[User:Blastboom Strice|Blastboom Strice]] ([[User talk:Blastboom Strice|talk]]) 08:40, 19 May 2026 (UTC)


== Host Configuration ==
== Host Configuration ==
Line 18: Line 20:


Tagging users that seem to be related: @[[User:Friedow|Friedow]]  [[User:Blastboom Strice|Blastboom Strice]] ([[User talk:Blastboom Strice|talk]]) 22:48, 18 May 2026 (UTC)
Tagging users that seem to be related: @[[User:Friedow|Friedow]]  [[User:Blastboom Strice|Blastboom Strice]] ([[User talk:Blastboom Strice|talk]]) 22:48, 18 May 2026 (UTC)
:@[[User:Blastboom Strice|Blastboom Strice]] It seems the default of <code>enableContainers</code> is <code>true</code> if [https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/virtualisation/nixos-containers.nix#L555 there are any existing containers]. So defining it manually is not necessary.
:The [https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/virtualisation/containers.nix#L23 virtualisation.containers] one defauls to <code>false</code>. I never defined it and my containers work just right. [[User:Arcstur|Arcstur]] ([[User talk:Arcstur|talk]]) 23:15, 18 May 2026 (UTC)
::About <code>virtualisation.containers</code>, I notice that nixos-containers do not use <code>/etc/containers</code>, that seems to be about oci containers. Nixos-containers instead use <code>/etc/nixos-containers</code> for the configuration files and <code>/var/lib/nixos-containers</code> for the actual files.
::I guess case closed, we can remove that snippet, unless new info comes in. [[User:Blastboom Strice|Blastboom Strice]] ([[User talk:Blastboom Strice|talk]]) 08:38, 19 May 2026 (UTC)
:::Awesome! [[User:Arcstur|Arcstur]] ([[User talk:Arcstur|talk]]) 12:18, 19 May 2026 (UTC)
Return to "NixOS Containers" page.