diff options
| author | EuAndreh <eu@euandre.org> | 2019-05-25 00:11:24 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2019-05-25 00:11:24 -0300 |
| commit | 12ab5c4442d7fda9f61b618ecc2dd71afab7f382 (patch) | |
| tree | 87f1ce725aaf734c1be949e4659d6c0ab32927d0 /servers | |
| parent | Add 1 git-crypt collaborator (diff) | |
| download | toph-12ab5c4442d7fda9f61b618ecc2dd71afab7f382.tar.gz toph-12ab5c4442d7fda9f61b618ecc2dd71afab7f382.tar.xz | |
Add simple stub VM definition
Diffstat (limited to 'servers')
| -rw-r--r-- | servers/vps/vps.logical.nix | 11 | ||||
| -rw-r--r-- | servers/vps/vps.virtualbox.nix | 9 |
2 files changed, 20 insertions, 0 deletions
diff --git a/servers/vps/vps.logical.nix b/servers/vps/vps.logical.nix new file mode 100644 index 0000000..a008eaf --- /dev/null +++ b/servers/vps/vps.logical.nix @@ -0,0 +1,11 @@ +{ + network.description = "Web server"; + + webserver = + { config, pkgs, ... }: + { services.httpd.enable = true; + services.httpd.adminAddr = "alice@example.org"; + services.httpd.documentRoot = "${pkgs.valgrind.doc}/share/doc/valgrind/html"; + networking.firewall.allowedTCPPorts = [ 80 ]; + }; +} diff --git a/servers/vps/vps.virtualbox.nix b/servers/vps/vps.virtualbox.nix new file mode 100644 index 0000000..651f54c --- /dev/null +++ b/servers/vps/vps.virtualbox.nix @@ -0,0 +1,9 @@ +{ + webserver = + { config, pkgs, ... }: + { deployment.targetEnv = "virtualbox"; + deployment.virtualbox.memorySize = 1024; # megabytes + deployment.virtualbox.vcpu = 2; # number of cpus + deployment.virtualbox.headless = true; + }; +} |
