Now hosting fully ivabus.dev

This commit is contained in:
Ivan Bushchik 2023-09-07 20:19:06 +03:00
parent 03b8b8f311
commit 057174d7f1
No known key found for this signature in database
GPG key ID: 2F16FBF3262E090C
8 changed files with 17 additions and 7 deletions

View file

@ -30,7 +30,7 @@
curl
usbutils
pciutils
(uutils-coreutils.override { prefix = ""; })
coreutils-full
killall
git
git-crypt

View file

@ -17,7 +17,7 @@
# Used by systemd-resolved, not directly by resolv.conf.
networking.nameservers =
[ "8.8.8.8#dns.google" "1.0.0.1#cloudflare-dns.com" ];
[ "1.0.0.1#cloudflare-dns.com" "8.8.8.8#dns.google" ];
networking.enableIPv6 = true;
@ -34,7 +34,7 @@
};
};
services.chrony.enable = true;
services.ntp.enable = true;
networking.timeServers =
[ "ntp1.vniiftri.ru" "0.ru.pool.ntp.org" "0.pool.ntp.org" ];

View file

@ -24,7 +24,7 @@ in {
virtualisation.enable = false;
yggdrasil-client.enable = true;
server = { ivabus-dev.enable = true; };
server = { ivabus-dev.enable = false; };
};
networking.useDHCP = true;

View file

@ -26,6 +26,8 @@ in {
torrent.enable = true;
virtualisation.enable = true;
yggdrasil-client.enable = true;
server = { ivabus-dev.enable = true; };
};
networking.useDHCP = true;

View file

@ -15,7 +15,7 @@ in {
graphical.enable = false;
latex.enable = false;
media-client.enable = false;
ntp-server.enable = true;
ntp-server.enable = false;
torrent.enable = false;
virtualisation.enable = false;
yggdrasil-client.enable = true;

View file

@ -1,6 +1,6 @@
{ pkgs ? import <nixpkgs> { }, bundlerEnv, ... }:
let
version = "130812885aee9f2e0a5f6a4b534a3b6b68431554";
version = "8a9a1364bc2111ea4889134f8ca18f10699f26ef";
repo = builtins.fetchGit {
url = "https://github.com/ivabus/website";
rev = version;

View file

@ -7,7 +7,9 @@ in {
my.roles.server.nginx.enable = true;
services.nginx = {
virtualHosts."ivabus.dev" = {
# i don't want to call package like this
forceSSL = true;
enableACME = true;
root = pkgs.callPackage ../../pkgs/ivabus-dev.nix { };
extraConfig = ''

View file

@ -12,5 +12,11 @@ in {
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
security.acme = {
acceptTerms = true;
defaults.email = "ivabus@ivabus.dev";
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
};
}