From 91d74082c43b1e7cc34d3aab459d2fab03d52f04 Mon Sep 17 00:00:00 2001 From: phaer Date: Fri, 22 Nov 2024 11:48:34 +0100 Subject: [PATCH] virtualisation/proxmox-lxc: use system.build.image --- nixos/modules/virtualisation/proxmox-lxc.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nixos/modules/virtualisation/proxmox-lxc.nix b/nixos/modules/virtualisation/proxmox-lxc.nix index b2f9d0635fd1..f4c6815eb377 100644 --- a/nixos/modules/virtualisation/proxmox-lxc.nix +++ b/nixos/modules/virtualisation/proxmox-lxc.nix @@ -8,6 +8,10 @@ with lib; { + imports = [ + ../image/file-options.nix + ]; + options.proxmoxLXC = { enable = mkOption { default = true; @@ -46,7 +50,15 @@ with lib; 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;