mirror of
https://github.com/ivabus/nixos
synced 2024-11-24 17:35:07 +03:00
Now hosting fully ivabus.dev
This commit is contained in:
parent
03b8b8f311
commit
057174d7f1
8 changed files with 17 additions and 7 deletions
|
@ -30,7 +30,7 @@
|
|||
curl
|
||||
usbutils
|
||||
pciutils
|
||||
(uutils-coreutils.override { prefix = ""; })
|
||||
coreutils-full
|
||||
killall
|
||||
git
|
||||
git-crypt
|
||||
|
|
|
@ -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" ];
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -26,6 +26,8 @@ in {
|
|||
torrent.enable = true;
|
||||
virtualisation.enable = true;
|
||||
yggdrasil-client.enable = true;
|
||||
|
||||
server = { ivabus-dev.enable = true; };
|
||||
};
|
||||
|
||||
networking.useDHCP = true;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ pkgs ? import <nixpkgs> { }, bundlerEnv, ... }:
|
||||
let
|
||||
version = "130812885aee9f2e0a5f6a4b534a3b6b68431554";
|
||||
version = "8a9a1364bc2111ea4889134f8ca18f10699f26ef";
|
||||
repo = builtins.fetchGit {
|
||||
url = "https://github.com/ivabus/website";
|
||||
rev = version;
|
||||
|
|
|
@ -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 = ''
|
||||
|
|
|
@ -12,5 +12,11 @@ in {
|
|||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "ivabus@ivabus.dev";
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue