add nixops deployment

This commit is contained in:
Robin Raymond 2017-08-11 14:06:54 +02:00
parent 938158b3a6
commit 9e56908439
2 changed files with 20 additions and 0 deletions

11
nixops/single-server.nix Normal file
View File

@ -0,0 +1,11 @@
{
network.description = "mail server";
mailserver =
{ config, pkgs, ... }:
{
imports = [
./../mail-config.nix
];
};
}

9
nixops/vbox.nix Normal file
View File

@ -0,0 +1,9 @@
{
mailserver =
{ config, pkgs, ... }:
{ deployment.targetEnv = "virtualbox";
deployment.virtualbox.memorySize = 1024; # megabytes
deployment.virtualbox.vcpu = 2; # number of cpus
deployment.virtualbox.headless = true;
};
}