mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(website): move to gensokyo-zone/website
This commit is contained in:
parent
5b1523c21f
commit
452033d672
7 changed files with 34 additions and 102 deletions
26
flake.lock
generated
26
flake.lock
generated
|
|
@ -198,7 +198,8 @@
|
|||
"std": "std",
|
||||
"std-fl": "std-fl",
|
||||
"systemd2mqtt": "systemd2mqtt",
|
||||
"tree": "tree"
|
||||
"tree": "tree",
|
||||
"website": "website"
|
||||
}
|
||||
},
|
||||
"rust": {
|
||||
|
|
@ -339,6 +340,29 @@
|
|||
"repo": "tree",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"website": {
|
||||
"inputs": {
|
||||
"flakelib": [
|
||||
"flakelib"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1706423113,
|
||||
"narHash": "sha256-1i8FO7L+MpDlgfx3wTW7NkojdHGFEE3qy/s1n+wjGlU=",
|
||||
"owner": "gensokyo-zone",
|
||||
"repo": "website",
|
||||
"rev": "88d31fa2f9d622f0076481e5949ce7e07723043e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "gensokyo-zone",
|
||||
"repo": "website",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
|
|
|||
|
|
@ -51,6 +51,13 @@
|
|||
flakelib.follows = "flakelib";
|
||||
};
|
||||
};
|
||||
website = {
|
||||
url = "github:gensokyo-zone/website";
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
flakelib.follows = "flakelib";
|
||||
};
|
||||
};
|
||||
};
|
||||
nixConfig = {
|
||||
extra-substituters = [
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
|
|
@ -8,7 +9,7 @@
|
|||
in {
|
||||
services.nginx.virtualHosts.${config.networking.domain} = {
|
||||
locations."/" = {
|
||||
root = pkgs.gensokyoZone;
|
||||
root = inputs.website.packages.${pkgs.system}.gensokyoZone;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 1 MiB |
|
|
@ -1,37 +0,0 @@
|
|||
{ writeTextFile, linkFarm }:
|
||||
|
||||
let
|
||||
mewp = writeTextFile {
|
||||
name = "index.html";
|
||||
text = ''
|
||||
<html>
|
||||
<head>
|
||||
<title>Gensokyo</title>
|
||||
<link rel="stylesheet" type="text/css" href="main.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Gensokyo</h1>
|
||||
<img src="cute.png"/>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://home.gensokyo.zone">Home Assistant</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://z2m.gensokyo.zone">Zigbee2MQTT</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://id.gensokyo.zone">Kanidm</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</body>
|
||||
</html>
|
||||
'';
|
||||
};
|
||||
in
|
||||
linkFarm "index" [
|
||||
{ name = "index.html"; path = mewp; }
|
||||
{ name = "main.css"; path = ./main.css; }
|
||||
{ name = "cute.png"; path = ./cute.png; }
|
||||
]
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
{ writeTextFile, linkFarm }:
|
||||
|
||||
let
|
||||
mewp = writeTextFile {
|
||||
name = "index.html";
|
||||
text = ''
|
||||
<html>
|
||||
<head>
|
||||
<title>Gensokyo</title>
|
||||
<link rel="stylesheet" type="text/css" href="main.css">
|
||||
</head>
|
||||
<body>
|
||||
<img src="cute.png"/>
|
||||
</body>
|
||||
</html>
|
||||
'';
|
||||
};
|
||||
in
|
||||
linkFarm "index" [
|
||||
{ name = "index.html"; path = mewp; }
|
||||
{ name = "main.css"; path = ./main.css; }
|
||||
{ name = "cute.png"; path = ./cute.png; }
|
||||
]
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
html {
|
||||
max-width: 70ch;
|
||||
padding: 3em 1em;
|
||||
margin: auto;
|
||||
line-height: 1.75;
|
||||
font-size: 1.25em;
|
||||
min-height: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
h1,h2,h3,h4,h5,h6 {
|
||||
margin: 3em 0 1em;
|
||||
}
|
||||
|
||||
p,ul,ol {
|
||||
margin-bottom: 2em;
|
||||
color: #1d1d1d;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
img {
|
||||
max-height: 33vh;
|
||||
min-height: 500px;
|
||||
margin: 1em auto;
|
||||
display: block;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
}
|
||||
nav ul {
|
||||
list-style-type: none;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
}
|
||||
nav ul li {
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue