Skip to content

Lxc

virtualisation.lxc.defaultConfig

Default config (default.conf) for new containers, i.e. for network config. See {manpage}lxc.container.conf(5).

Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/lxc.nix

virtualisation.lxc.enable

This enables Linux Containers (LXC), which provides tools for creating and managing system or application containers on Linux.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/lxc.nix

virtualisation.lxc.lxcfs.enable

This enables LXCFS, a FUSE filesystem for LXC. To use lxcfs in include the following configuration in your container configuration:

virtualisation.lxc.defaultConfig = "lxc.include = ${pkgs.lxcfs}/share/lxc/config/common.conf.d/00-lxcfs.conf";

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/lxcfs.nix

virtualisation.lxc.package

The lxc package to use. Type: package

Default

pkgs.lxc

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/lxc.nix

virtualisation.lxc.systemConfig

This is the system-wide LXC config. See {manpage}lxc.system.conf(5).

Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/lxc.nix

virtualisation.lxc.usernetConfig

This is the config file for managing unprivileged user network administration access in LXC. See {manpage}lxc-usernet(5).

Type: strings concatenated with "\n"

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/virtualisation/lxc.nix