2 network.rollBack = false;
3 friot = {pkgs, lib, config, options, ...}:
4 let ipv4 = if options.networking.privateIPv4.isDefined
5 then config.networking.privateIPv4
9 deployment.targetEnv = "virtualbox";
10 deployment.virtualbox.headless = true;
11 deployment.virtualbox.memorySize = 1024;
12 deployment.virtualbox.vcpu = 2;
13 deployment.virtualbox.disks.disk1.baseImage = ../../.cache/nixops/virtualbox/nixops.vmdk;
14 #deployment.virtualbox.disks.disk1.size = 6024;
15 # NOTE: resize not yet supported.
17 deployment.storeKeysOnMachine = true;
19 interfaces."enp0s8" = {
20 #macAddress = "00:11:22:33:44:55";
21 #ipv4.addresses = [ { address = ipv4; prefixLength = 32; } ];
22 ipv6.addresses = [ { address = "fe80::1"; prefixLength = 10; } ];
42 # { deployment.targetEnv = "virtualbox"; };
46 # { deployment.targetEnv = "container";
47 # deployment.container.host = resources.machines.vbox;