mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-07 08:49:27 +02:00
adding kindergarten
This commit is contained in:
parent
8d3050faa1
commit
a07e1b7810
39
flake.lock
39
flake.lock
|
@ -260,6 +260,27 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"kindergarten": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"utils": "utils_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1677244616,
|
||||
"narHash": "sha256-RD97cxI3pyZSv5xiMGOldn8uscRIlsYgkytZJqr0CIw=",
|
||||
"owner": "tlm-solutions",
|
||||
"repo": "kindergarten",
|
||||
"rev": "7832ff8e595143e6db37d766a6ce43fe05d10d1f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "tlm-solutions",
|
||||
"repo": "kindergarten",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"microvm": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
|
@ -397,6 +418,7 @@
|
|||
"TLMS": "TLMS",
|
||||
"datacare": "datacare",
|
||||
"documentation-src": "documentation-src",
|
||||
"kindergarten": "kindergarten",
|
||||
"microvm": "microvm",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"sops-nix": "sops-nix",
|
||||
|
@ -586,7 +608,7 @@
|
|||
"nixpkgs"
|
||||
],
|
||||
"tlms-rs": "tlms-rs_3",
|
||||
"utils": "utils_3"
|
||||
"utils": "utils_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1676742803,
|
||||
|
@ -633,6 +655,21 @@
|
|||
}
|
||||
},
|
||||
"utils_3": {
|
||||
"locked": {
|
||||
"lastModified": 1676283394,
|
||||
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"utils_4": {
|
||||
"locked": {
|
||||
"lastModified": 1667395993,
|
||||
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
|
||||
|
|
|
@ -31,6 +31,11 @@
|
|||
url = "github:tlm-solutions/datacare";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
kindergarten = {
|
||||
url = "github:tlm-solutions/kindergarten";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
@ -42,6 +47,7 @@
|
|||
, sops-nix
|
||||
, documentation-src
|
||||
, trekkie
|
||||
, kindergarten
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
|
@ -60,6 +66,7 @@
|
|||
nixpkgs.overlays = [
|
||||
TLMS.overlays.default
|
||||
datacare.overlays.default
|
||||
kindergarten.overlays.default
|
||||
trekkie.overlays.default
|
||||
(final: prev: {
|
||||
inherit documentation-src;
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
{ pkgs, config, ... }: {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts."click.${config.deployment-TLMS.domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
root = if (config.deployment-TLMS.domain == "dvb.solutions") then "${pkgs.click}/web/" else "${pkgs.click-staging}/web/";
|
||||
index = "index.html";
|
||||
tryFiles = "$uri /index.html";
|
||||
};
|
||||
locations."/regions/" = {
|
||||
alias = "/${pkgs.click}/web/";
|
||||
};
|
||||
locations."/stations/" = {
|
||||
alias = "/${pkgs.click}/web/";
|
||||
};
|
||||
locations."/mystations/" = {
|
||||
alias = "/${pkgs.click}/web/";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./click.nix
|
||||
./kindergarten.nix
|
||||
./datacare.nix
|
||||
./data-accumulator.nix
|
||||
./documentation.nix
|
||||
|
|
14
modules/data-hoarder/kindergarten.nix
Normal file
14
modules/data-hoarder/kindergarten.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, config, ... }: {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts."kindergarten.${config.deployment-TLMS.domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
root = if (config.deployment-TLMS.domain == "dvb.solutions") then "${pkgs.kindergarten}/bin/" else "${pkgs.kindergarten-staging}/bin/";
|
||||
index = "index.html";
|
||||
tryFiles = "$uri /index.html =404";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user