services/nginx: add website

This commit is contained in:
LavaDesu 2022-02-14 18:34:46 +07:00
parent a0e4da2fd0
commit 4b2c36b00f
Signed by: cilly
GPG key ID: 6500251E087653C9
3 changed files with 23 additions and 5 deletions

18
flake.lock generated
View file

@ -576,6 +576,7 @@
"tree-sitter-jsonc": "tree-sitter-jsonc", "tree-sitter-jsonc": "tree-sitter-jsonc",
"twemoji-but-good": "twemoji-but-good", "twemoji-but-good": "twemoji-but-good",
"view-raw": "view-raw", "view-raw": "view-raw",
"website": "website",
"who-reacted": "who-reacted", "who-reacted": "who-reacted",
"wine-discord-ipc-bridge": "wine-discord-ipc-bridge", "wine-discord-ipc-bridge": "wine-discord-ipc-bridge",
"zelk": "zelk", "zelk": "zelk",
@ -734,6 +735,23 @@
"type": "github" "type": "github"
} }
}, },
"website": {
"flake": false,
"locked": {
"lastModified": 1609417219,
"narHash": "sha256-ZwJckHqfdx+w02qxf/G1O4wUWJSkly4ot/rII+btB1M=",
"owner": "LavaDesu",
"repo": "lavadesu.github.io",
"rev": "63d9b345ae481658e37ccb64b6992efd729a690b",
"type": "github"
},
"original": {
"owner": "LavaDesu",
"ref": "master",
"repo": "lavadesu.github.io",
"type": "github"
}
},
"who-reacted": { "who-reacted": {
"flake": false, "flake": false,
"locked": { "locked": {

View file

@ -17,6 +17,9 @@
powercord-overlay.url = "github:LavaDesu/powercord-overlay"; powercord-overlay.url = "github:LavaDesu/powercord-overlay";
powercord-overlay.inputs.nixpkgs.follows = "nixpkgs"; powercord-overlay.inputs.nixpkgs.follows = "nixpkgs";
# services
website = { url = "github:LavaDesu/lavadesu.github.io/master"; flake = false; };
# zsh plugins # zsh plugins
zsh-abbr = { url = "github:olets/zsh-abbr"; flake = false; }; zsh-abbr = { url = "github:olets/zsh-abbr"; flake = false; };
zsh-history-substring-search = { url = "github:zsh-users/zsh-history-substring-search"; flake = false; }; zsh-history-substring-search = { url = "github:zsh-users/zsh-history-substring-search"; flake = false; };

View file

@ -1,4 +1,4 @@
{ ... }: { { inputs, ... }: {
security.acme.acceptTerms = true; security.acme.acceptTerms = true;
security.acme.email = "me@lava.moe"; security.acme.email = "me@lava.moe";
services.nginx = { services.nginx = {
@ -12,10 +12,7 @@
"lava.moe" = { "lava.moe" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
root = inputs.website.outPath;
locations."/".extraConfig = ''
return 404;
'';
}; };
}; };
}; };