]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/staging.nix
nix: fix NIX_PATH
[sourcephile-nix.git] / servers / mermet / staging.nix
1 { pkgs, lib, config, options
2 # NixOps extra module inputs
3 , nodes, name, uuid, resources
4 , ... }:
5 let inherit (config) networking; in
6 {
7 imports =
8 [ staging/shorewall.nix
9 ];
10 config = {
11 services.nsd.interfaces = [ networking.privateIPv4 ];
12 deployment = /*lib.mkIf (builtins.hasAttr "mermet" nodes)*/ {
13 targetEnv = "virtualbox";
14 virtualbox.headless = true;
15 virtualbox.memorySize = 1024;
16 virtualbox.vcpu = 2;
17 virtualbox.disks.disk1.baseImage = ../../.cache/nixops/virtualbox/nixops.vmdk;
18 # NOTE: resize not yet supported.
19 #virtualbox.disks.disk1.size = 6024;
20 #storeKeysOnMachine = true;
21 };
22 };
23 }