Skip to content

Commit d044aab

Browse files
committed
Remove virtualbox exporters
1 parent fccebf7 commit d044aab

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

nixos/exporters.nix

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,43 +12,36 @@
1212
}
1313
];
1414

15-
# Generate image with optional extra modules
1615
mkImage = format: extraModules: inputs.nixos-generators.nixosGenerate {
1716
system = "x86_64-linux";
1817
inherit format;
1918
modules = baseModules ++ extraModules;
2019
};
2120

22-
# Cloud images need to disable sudo.execWheelOnly
2321
cloudImageModule = {lib, ...}: {
2422
security.sudo.execWheelOnly = lib.mkForce false;
2523
};
2624

27-
# Some formats configure their own bootloader
2825
noBootloaderModule = {lib, ...}: {
2926
boot.loader.systemd-boot.enable = lib.mkForce false;
3027
boot.loader.efi.canTouchEfiVariables = lib.mkForce false;
3128
};
3229

33-
# VirtualBox needs more resources for building
3430
virtualboxModule = {
3531
virtualbox.params.diskSize = 16384; # 16GB instead of default 8GB
3632
virtualbox.params.memorySize = 2048; # 2GB RAM for the final VM
3733
virtualbox.memorySize = 4096; # 4GB RAM for the build VM
3834
};
3935

40-
# LXC containers need special network configuration
4136
lxcModule = {lib, ...}: {
4237
networking.useHostResolvConf = lib.mkForce false;
4338
services.resolved.enable = lib.mkForce true;
4439
};
4540
in {
4641
flake = {
4742
packages.x86_64-linux = {
48-
# QEMU/KVM
4943
qcow2 = mkImage "qcow" [];
5044

51-
# Cloud providers
5245
ami = mkImage "amazon" [
5346
inputs.srvos.nixosModules.hardware-amazon
5447
cloudImageModule
@@ -75,23 +68,16 @@ in {
7568
noBootloaderModule
7669
];
7770

78-
# Oracle Cloud Infrastructure - using raw-efi format
7971
oracle = mkImage "raw-efi" [
8072
cloudImageModule
8173
];
8274

83-
# Virtualization
8475
vmware = mkImage "vmware" [];
85-
virtualbox = mkImage "virtualbox" [
86-
noBootloaderModule
87-
virtualboxModule
88-
];
8976
proxmox = mkImage "proxmox" [
9077
noBootloaderModule
9178
];
9279
hyperv = mkImage "hyperv" [];
9380

94-
# Container
9581
lxc = mkImage "lxc" [
9682
lxcModule
9783
noBootloaderModule

0 commit comments

Comments
 (0)