2 network.rollBack = false;
3 friot = {pkgs, lib, config, options, ...}:
4 let ipv4 = if options.networking.privateIPv4.isDefined
5 then config.networking.privateIPv4
10 deployment.targetEnv = "virtualbox";
11 deployment.virtualbox.headless = true;
12 deployment.virtualbox.memorySize = 1024;
13 deployment.virtualbox.vcpu = 2;
14 deployment.virtualbox.disks.disk1.baseImage = <sys/var/virtualbox/nixops.vmdk>;
15 #deployment.virtualbox.disks.disk1.size = 6024;
16 # NOTE: resize not yet supported.
18 deployment.storeKeysOnMachine = true;
19 deployment.autoLuks = {
20 # NOTE: not working on virtualbox deployment
23 passphrase = "foobar";
25 cipher = "aes-cbc-essiv:sha256";
29 interfaces."enp0s8" = {
30 #macAddress = "00:11:22:33:44:55";
31 #ipv4.addresses = [ { address = ipv4; prefixLength = 32; } ];
32 ipv6.addresses = [ { address = "fe80::1"; prefixLength = 10; } ];
52 # { deployment.targetEnv = "virtualbox"; };
56 # { deployment.targetEnv = "container";
57 # deployment.container.host = resources.machines.vbox;