add nixops deployment
This commit is contained in:
parent
938158b3a6
commit
9e56908439
2 changed files with 20 additions and 0 deletions
11
nixops/single-server.nix
Normal file
11
nixops/single-server.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
network.description = "mail server";
|
||||||
|
|
||||||
|
mailserver =
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./../mail-config.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
9
nixops/vbox.nix
Normal file
9
nixops/vbox.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue