add space-left server
This commit is contained in:
parent
f9e576ee0f
commit
efdcc85836
6 changed files with 15 additions and 22 deletions
|
@ -18,7 +18,7 @@ in {
|
||||||
hcloud.nixserver = {
|
hcloud.nixserver = {
|
||||||
host = {
|
host = {
|
||||||
enable = true;
|
enable = true;
|
||||||
serverType = "cx51"; # 35€/month
|
serverType = "cx31";
|
||||||
configurationFile = pkgs.writeText "configuration.nix" ''
|
configurationFile = pkgs.writeText "configuration.nix" ''
|
||||||
{ pkgs, lib, config, ... }:
|
{ 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;
|
hcloud.export.nix = toString ./plops/generated/nixos-machines.nix;
|
||||||
|
|
||||||
resource.local_file.sshConfig = {
|
resource.local_file.sshConfig = {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{ config, pkgs, lib, ... }: {
|
{ config, pkgs, lib, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
#
|
#
|
||||||
./codimd.nix
|
#./codimd.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./jitsi.nix
|
#/jitsi.nix
|
||||||
./netdata.nix
|
#./netdata.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./workadventure.nix
|
#./workadventure.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.git pkgs.ag pkgs.htop ];
|
environment.systemPackages = [ pkgs.git pkgs.ag pkgs.htop ];
|
||||||
|
|
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
services.sshd.enable = true;
|
services.sshd.enable = true;
|
||||||
services.openssh.passwordAuthentication = false;
|
services.openssh.passwordAuthentication = false;
|
||||||
services.openssh.banner = ''
|
services.openssh.banner = ''
|
||||||
[ JITSI Server ]
|
[ Space Left Server ]
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# the public ssh key used at deployment
|
# the public ssh key used at deployment
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
{ pkgs ? import <nixpkgs> { } }:
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
let
|
let
|
||||||
|
|
||||||
terranix = pkgs.callPackage (pkgs.fetchgit {
|
#terranix = pkgs.callPackage (pkgs.fetchgit {
|
||||||
url = "https://github.com/mrVanDalo/terranix.git";
|
# url = "https://github.com/mrVanDalo/terranix.git";
|
||||||
rev = "2.3.0";
|
# rev = "2.3.0";
|
||||||
sha256 = "030067h3gjc02llaa7rx5iml0ikvw6szadm0nrss2sqzshsfimm4";
|
# sha256 = "030067h3gjc02llaa7rx5iml0ikvw6szadm0nrss2sqzshsfimm4";
|
||||||
}) { };
|
#}) { };
|
||||||
|
terranix = pkgs.terranix;
|
||||||
|
|
||||||
terraform = pkgs.writers.writeBashBin "terraform" ''
|
terraform = pkgs.writers.writeBashBin "terraform" ''
|
||||||
export TF_VAR_hcloud_api_token=`${pkgs.pass}/bin/pass development/hetzner.com/api-token`
|
export TF_VAR_hcloud_api_token=`${pkgs.pass}/bin/pass development/hetzner.com/api-token`
|
||||||
|
|
BIN
terranix/space-left/terraform.tfstate
Normal file
BIN
terranix/space-left/terraform.tfstate
Normal file
Binary file not shown.
Loading…
Reference in a new issue