virtualisation/proxmox-lxc: use system.build.image

phaer 91d74082 06ad3811

Changed files
+12
nixos
modules
virtualisation
+12
nixos/modules/virtualisation/proxmox-lxc.nix
···
with lib;
{
+
imports = [
+
../image/file-options.nix
+
];
+
options.proxmoxLXC = {
enable = mkOption {
default = true;
···
cfg = config.proxmoxLXC;
in
mkIf cfg.enable {
+
system.nixos.tags = [
+
"proxmox"
+
"lxc"
+
];
+
image.extension = "tar.xz";
+
image.filePath = "tarball/${config.image.fileName}";
+
system.build.image = config.system.build.tarball;
system.build.tarball = pkgs.callPackage ../../lib/make-system-tarball.nix {
+
fileName = config.image.baseName;
storeContents = [
{
object = config.system.build.toplevel;