virtualisation/proxmox-lxc: use system.build.image
This commit is contained in:
@@ -8,6 +8,10 @@
|
|||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
../image/file-options.nix
|
||||||
|
];
|
||||||
|
|
||||||
options.proxmoxLXC = {
|
options.proxmoxLXC = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
@@ -46,7 +50,15 @@ with lib;
|
|||||||
cfg = config.proxmoxLXC;
|
cfg = config.proxmoxLXC;
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
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 {
|
system.build.tarball = pkgs.callPackage ../../lib/make-system-tarball.nix {
|
||||||
|
fileName = config.image.baseName;
|
||||||
storeContents = [
|
storeContents = [
|
||||||
{
|
{
|
||||||
object = config.system.build.toplevel;
|
object = config.system.build.toplevel;
|
||||||
|
|||||||
Reference in New Issue
Block a user