nixos/lxc: add package option and use for incus/lxd

This commit is contained in:
Adam Stephens 2024-04-22 08:31:05 -04:00
parent ee1428c654
commit f171f4ffd4
No known key found for this signature in database
3 changed files with 16 additions and 9 deletions

View file

@ -111,7 +111,12 @@ in
package = lib.mkPackageOption pkgs "incus-lts" { };
lxcPackage = lib.mkPackageOption pkgs "lxc" { };
lxcPackage = lib.mkOption {
type = lib.types.package;
default = config.virtualisation.lxc.package;
defaultText = lib.literalExpression "config.virtualisation.lxc.package";
description = "The lxc package to use.";
};
clientPackage = lib.mkOption {
type = lib.types.package;