]> Git — Sourcephile - sourcephile-nix.git/blob - servers/mermet/staging.nix
dovecot: fix INDEX corruption by INDEXPVT
[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 nix.maxJobs = 2;
13 deployment = /*lib.mkIf (builtins.hasAttr "mermet" nodes)*/ {
14 targetEnv = "virtualbox";
15 virtualbox.headless = true;
16 virtualbox.memorySize = 1024;
17 virtualbox.vcpu = 2;
18 virtualbox.disks.disk1.baseImage = ../../.cache/nixops/virtualbox/nixops.vmdk;
19 # NOTE: resize not yet supported.
20 #virtualbox.disks.disk1.size = 6024;
21 #storeKeysOnMachine = true;
22 };
23 };
24 }