Add website
This commit is contained in:
parent
7025ea882f
commit
4a7a3496e3
|
@ -67,6 +67,8 @@
|
|||
shimmeringmoon.inputs.shimmeringdarkness.follows = "shimmeringdarkness";
|
||||
shimmeringmoon.url = "git+ssh://forgejo@ssh.git.moonythm.dev/prescientmoon/shimmeringmoon.git";
|
||||
|
||||
moonythm.inputs.nixpkgs.follows = "nixpkgs";
|
||||
moonythm.url = "git+ssh://forgejo@ssh.git.moonythm.dev/prescientmoon/moonythm.git";
|
||||
# }}}
|
||||
# {{{ Theming
|
||||
darkmatter-grub-theme.url = "gitlab:VandalByte/darkmatter-grub-theme";
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
./services/jellyfin.nix
|
||||
./services/jupyter.nix
|
||||
./services/microbin.nix
|
||||
./services/moonythm.nix.nix
|
||||
./services/pounce.nix
|
||||
./services/prometheus.nix
|
||||
./services/prometheus.nix
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# I couldn't find a hosted version of this
|
||||
{ pkgs, config, ... }: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
satellite.nginx.at.diptime.files = pkgs.fetchFromGitHub {
|
||||
owner = "bhickey";
|
||||
repo = "diplomatic-timekeeper";
|
||||
|
|
27
hosts/nixos/lapetus/services/moonythm.nix
Normal file
27
hosts/nixos/lapetus/services/moonythm.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
dir = inputs.moonythm.packages.${pkgs.system}.moonythm;
|
||||
in
|
||||
{
|
||||
satellite.cloudflared.at."".port = 8080;
|
||||
|
||||
satellite.nginx.at."".files = dir;
|
||||
services.nginx.virtualHosts."".extraConfig = ''
|
||||
root ${dir};
|
||||
error_page 404 /404.html;
|
||||
|
||||
proxy_intercept_errors on;
|
||||
location / {
|
||||
index index.html;
|
||||
try_files $uri $uri.html $uri/ =404;
|
||||
}
|
||||
|
||||
location = /404.html {
|
||||
internal;
|
||||
}
|
||||
'';
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{ config, ... }:
|
||||
{ ... }:
|
||||
{
|
||||
# {{{ Zfs config
|
||||
services.zfs = {
|
||||
|
|
Loading…
Reference in a new issue