mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-11-11 11:29:17 +05:00
add nixops deployment
This commit is contained in:
parent
938158b3a6
commit
9e56908439
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 New Issue
Block a user