mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
splashy and the fixed yule configs and stuff
This commit is contained in:
parent
744ce9124c
commit
9d8dbe896d
6 changed files with 33 additions and 6 deletions
|
|
@ -16,6 +16,7 @@ in {
|
|||
users.kat.guiFull
|
||||
services.netdata
|
||||
services.nginx
|
||||
services.katsplash
|
||||
services.node-exporter
|
||||
services.promtail
|
||||
services.restic
|
||||
|
|
|
|||
|
|
@ -57,10 +57,6 @@ with lib;
|
|||
useDHCP = false;
|
||||
wireless.interfaces = singleton "wlp2s0";
|
||||
interfaces = {
|
||||
enp1s0.ipv4.addresses = singleton {
|
||||
inherit (config.network.addresses.private.ipv4) address;
|
||||
prefixLength = 24;
|
||||
};
|
||||
wlp2s0.ipv4.addresses = singleton {
|
||||
inherit (config.network.addresses.private.ipv4) address;
|
||||
prefixLength = 24;
|
||||
|
|
|
|||
8
depot/services/katsplash/default.nix
Normal file
8
depot/services/katsplash/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ config, pkgs, kw, ... }:
|
||||
|
||||
let splashy = pkgs.kat-splash config.networking.hostName; in {
|
||||
services.nginx.virtualHosts = kw.virtualHostGen {
|
||||
networkFilter = ["private"];
|
||||
block.locations."/" = { root = splashy; };
|
||||
};
|
||||
}
|
||||
|
|
@ -4,8 +4,6 @@
|
|||
services.nginx.virtualHosts = {
|
||||
"${config.network.dns.domain}" = {
|
||||
root = pkgs.kat-website;
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,6 +78,8 @@ let
|
|||
withBackends = [ "freeimage" "libjpeg" "libpng" "librsvg" "libnsgif" "libheif" "libtiff" ];
|
||||
};
|
||||
|
||||
kat-splash = self.callPackage ./kat-splash { };
|
||||
|
||||
kat-glauca-dns = self.callPackage ./kat-glauca-dns { };
|
||||
|
||||
kat-gpg-status = self.callPackage ./kat-gpg-status { };
|
||||
|
|
|
|||
22
pkgs/kat-splash/default.nix
Normal file
22
pkgs/kat-splash/default.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ writeTextFile, linkFarm }: hostname:
|
||||
|
||||
let mewp = writeTextFile {
|
||||
name = "index.html";
|
||||
text = ''
|
||||
<html>
|
||||
<head>
|
||||
<title>kat's ${hostname}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>mew! welcome to ${hostname} ><</h1>
|
||||
|
||||
<img src="splash.jpg">
|
||||
|
||||
<p>stop snooping, it's mean! o:</p>
|
||||
</body>
|
||||
</html>
|
||||
''; }; mewy = "${./splash.jpg}";
|
||||
in linkFarm "index" [
|
||||
{ name = "index.html"; path = mewp; }
|
||||
{ name = "splash.jpg"; path = mewy; }
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue