add miifox.net
This commit is contained in:
parent
84fcf7ec7a
commit
57e347e36c
4 changed files with 44 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
{ ... }: {
|
||||
{ pkgs, miifox-net, ... }: {
|
||||
users.users.miifox = {
|
||||
createHome = true;
|
||||
description = "Miifox";
|
||||
|
@ -22,8 +22,12 @@
|
|||
acmeRoot = "/home/miifox/miifox.net";
|
||||
sslCertificate = "/var/lib/acme/miifox.net/cert.pem";
|
||||
sslCertificateKey = "/var/lib/acme/miifox.net/key.pem";
|
||||
locations."/" = {
|
||||
root = "/home/miifox/miifox.net";
|
||||
locations."/" =
|
||||
let
|
||||
miifox-website = pkgs.callPackage (import ../../packages/miifox.nix miifox-net) {};
|
||||
in
|
||||
{
|
||||
root = "${miifox-website}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
23
flake.lock
23
flake.lock
|
@ -369,6 +369,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"miifox-net": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1648214398,
|
||||
"narHash": "sha256-PiAbjk1nueVd9HPw0/H6+WAjxNllloaEp2el5BMmDRc=",
|
||||
"ref": "master",
|
||||
"rev": "d396ae69567bac7a77f265cde3f993d03f32f693",
|
||||
"revCount": 3,
|
||||
"type": "git",
|
||||
"url": "https://git.chir.rs/CarolineHusky/MiiFox.net"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "https://git.chir.rs/CarolineHusky/MiiFox.net"
|
||||
}
|
||||
},
|
||||
"nix": {
|
||||
"inputs": {
|
||||
"lowdown-src": "lowdown-src",
|
||||
|
@ -626,11 +642,11 @@
|
|||
},
|
||||
"nur": {
|
||||
"locked": {
|
||||
"lastModified": 1648203732,
|
||||
"narHash": "sha256-kbZZGPc6NZstxjbPuPqNV2jUHl1SRJ4DaQNV1D0xZRU=",
|
||||
"lastModified": 1648205719,
|
||||
"narHash": "sha256-+Ioc8RGlY1RGWJdxcjZr50uKY4g81mumMHYNZberK70=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"rev": "97f710db872aae963574bbf69a059d60c437af5f",
|
||||
"rev": "159d0d9caf619314c5ff7f7df9a1ce1a458083e9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -686,6 +702,7 @@
|
|||
"home-manager": "home-manager",
|
||||
"hosts-list": "hosts-list",
|
||||
"hydra": "hydra",
|
||||
"miifox-net": "miifox-net",
|
||||
"nix-gaming": "nix-gaming",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs_7",
|
||||
|
|
|
@ -25,6 +25,8 @@ rec {
|
|||
hosts-list.url = github:StevenBlack/hosts;
|
||||
hosts-list.flake = false;
|
||||
nixos-hardware.url = github:NixOS/nixos-hardware;
|
||||
miifox-net.url = "git+https://git.chir.rs/CarolineHusky/MiiFox.net";
|
||||
miifox-net.flake = false;
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, sops-nix, home-manager, chir-rs, nur, nix-gaming, polymc, ... } @ args:
|
||||
|
|
15
packages/miifox.nix
Normal file
15
packages/miifox.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
miifox-net: { stdenvNoCC, python3Packages, ... }: stdenvNoCC.mkDerivation {
|
||||
name = "miifox.net";
|
||||
srcs = miifox-net;
|
||||
nativeBuildInputs = [
|
||||
python3Packages.chevron
|
||||
];
|
||||
buildPhase = ''
|
||||
chevron -d index.json index.handlebars > index.html
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r * $out
|
||||
rm $out/index.json
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue