add space-left server

This commit is contained in:
Ingolf Wagner 2021-08-30 20:37:28 +02:00
parent f9e576ee0f
commit efdcc85836
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
6 changed files with 15 additions and 22 deletions

View file

@ -18,7 +18,7 @@ in {
hcloud.nixserver = {
host = {
enable = true;
serverType = "cx51"; # 35€/month
serverType = "cx31";
configurationFile = pkgs.writeText "configuration.nix" ''
{ pkgs, lib, config, ... }:
{
@ -28,6 +28,9 @@ in {
};
};
# todo : put this in the hcloud module
resource.hcloud_server.nixserver-host.location = "hel1";
hcloud.export.nix = toString ./plops/generated/nixos-machines.nix;
resource.local_file.sshConfig = {

View file

@ -1,12 +1,12 @@
{ config, pkgs, lib, ... }: {
imports = [
#
./codimd.nix
#./codimd.nix
./hardware-configuration.nix
./jitsi.nix
./netdata.nix
#/jitsi.nix
#./netdata.nix
./ssh.nix
./workadventure.nix
#./workadventure.nix
];
environment.systemPackages = [ pkgs.git pkgs.ag pkgs.htop ];

View file

@ -12,15 +12,4 @@
};
};
};
services.nginx.enable = true;
services.nginx.virtualHosts."netdata.party.ingolf-wagner.de" = {
enableACME = true;
forceSSL = true;
basicAuth.admin = "NYsXfBKRwkkS60WIeZONtFTv3nz4tPy52uqLkzJzuc";
locations."/" = {
proxyPass = "http://localhost:19999";
proxyWebsockets = true;
};
};
}

View file

@ -4,7 +4,7 @@
services.sshd.enable = true;
services.openssh.passwordAuthentication = false;
services.openssh.banner = ''
[ JITSI Server ]
[ Space Left Server ]
'';
# the public ssh key used at deployment

View file

@ -1,11 +1,12 @@
{ pkgs ? import <nixpkgs> { } }:
let
terranix = pkgs.callPackage (pkgs.fetchgit {
url = "https://github.com/mrVanDalo/terranix.git";
rev = "2.3.0";
sha256 = "030067h3gjc02llaa7rx5iml0ikvw6szadm0nrss2sqzshsfimm4";
}) { };
#terranix = pkgs.callPackage (pkgs.fetchgit {
# url = "https://github.com/mrVanDalo/terranix.git";
# rev = "2.3.0";
# sha256 = "030067h3gjc02llaa7rx5iml0ikvw6szadm0nrss2sqzshsfimm4";
#}) { };
terranix = pkgs.terranix;
terraform = pkgs.writers.writeBashBin "terraform" ''
export TF_VAR_hcloud_api_token=`${pkgs.pass}/bin/pass development/hetzner.com/api-token`

Binary file not shown.