Skip to content

Commit

Permalink
add customFormats
Browse files Browse the repository at this point in the history
  • Loading branch information
bri committed Feb 11, 2024
1 parent e2075f3 commit e2a0216
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,40 @@
};
in
{
nixosModules.customFormats =
{ }:
{
formatConfigs.azure =
{ ... }:
{
fileExtension = ".vhd";
};

formatConfigs.docker =
{ lib, ... }:
{
services.resolved.enable = false;
services.qemuGuest.enable = lib.mkForce false;
};

formatConfigs.oracle =
{ modulesPath, ... }:
{
imports = [ "${toString modulesPath}/virtualisation/oci-image.nix" ];

formatAttr = "OCIImage";
fileExtension = ".qcow2";
};

formatConfigs.proxmox =
{ modulesPath, ... }:
{
imports = [ "${toString modulesPath}/virtualisation/oci-image.nix" ];

bios = "ovmf";
};
};

checks =
{ }
// (mkChecks {
Expand Down Expand Up @@ -249,6 +283,7 @@
];
extraModules = [
disko.nixosModules.disko
self.nixosModules.customFormats
./profiles/personal.nix
# ./modules/nixos/desktop.nix
# ./modules/nixos/gnome.nix
Expand Down

0 comments on commit e2a0216

Please sign in to comment.