Talk:NixOS Containers: Difference between revisions
Appearance
Latest comment: 18 May by Arcstur in topic Host Configuration
→Host Configuration: new section |
→Host Configuration: Reply |
||
| Line 18: | Line 18: | ||
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) | |||
Revision as of 23:15, 18 May 2026
articles
when using nftables
The correct value when using nftables should be "ve-*": Cookie_Cocoa (talk) 06:44, 8 May 2026 (UTC)
Host Configuration
> For all of the examples below to work, you'll have to enable virtualization and the use of containers in your host systems nix configuration.
> boot.enableContainers = true;
> virtualisation.containers.enable = true;
Is that necessary? I have a machine with system.stateVersion = "25.05"; that uses neither of the above options and containers work just right. Is it possible that the system enables these by using containers, thus no need to set the 2 options above?
Tagging users that seem to be related: @Friedow Blastboom Strice (talk) 22:48, 18 May 2026 (UTC)
- @Blastboom Strice It seems the default of
enableContainersistrueif there are any existing containers. So defining it manually is not necessary. - The virtualisation.containers one defauls to
false. I never defined it and my containers work just right. Arcstur (talk) 23:15, 18 May 2026 (UTC)