Add nix-serve to server
This commit is contained in:
parent
30d6ad9330
commit
4f942e7d8d
|
@ -161,6 +161,7 @@
|
||||||
systemConfig {
|
systemConfig {
|
||||||
inherit hostName user system;
|
inherit hostName user system;
|
||||||
systemModules = [
|
systemModules = [
|
||||||
|
./services/nix-serve.nix
|
||||||
./services/caddy.nix
|
./services/caddy.nix
|
||||||
./services/gitea.nix
|
./services/gitea.nix
|
||||||
./services/grafana.nix
|
./services/grafana.nix
|
||||||
|
|
8
services/nix-serve.nix
Normal file
8
services/nix-serve.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{config, ...}: {
|
||||||
|
imports = [./caddy.nix];
|
||||||
|
services.nix-serve = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
services.caddy.virtualHosts."nix.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${config.services.nix-serve.port}";
|
||||||
|
}
|
Loading…
Reference in a new issue