nixos/lxd: add virtual-machine support, image and module

This commit is contained in:
Adam Stephens
2023-08-24 23:00:42 -04:00
parent 73982ef92a
commit efd1605be6
15 changed files with 365 additions and 232 deletions

View File

@@ -0,0 +1,20 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, lib, ... }:
{
imports =
[
# Include the default lxd configuration.
../../../modules/virtualisation/lxc-container.nix
# Include the container-specific autogenerated configuration.
./lxd.nix
];
networking.useDHCP = false;
networking.interfaces.eth0.useDHCP = true;
system.stateVersion = "21.05"; # Did you read the comment?
}