diff --git a/nixops/single-server.nix b/nixops/single-server.nix new file mode 100644 index 0000000..a6aa831 --- /dev/null +++ b/nixops/single-server.nix @@ -0,0 +1,11 @@ +{ + network.description = "mail server"; + + mailserver = + { config, pkgs, ... }: + { + imports = [ + ./../mail-config.nix + ]; + }; +} diff --git a/nixops/vbox.nix b/nixops/vbox.nix new file mode 100644 index 0000000..2af7518 --- /dev/null +++ b/nixops/vbox.nix @@ -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; + }; +}