mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 06:50:14 +01:00
feat: enable nix-serve for local devices
This commit is contained in:
parent
94b414bab9
commit
58e4e735dc
1 changed files with 18 additions and 0 deletions
18
modules/services/nix-serve.nix
Normal file
18
modules/services/nix-serve.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services = {
|
||||
nix-serve = {
|
||||
enable = true;
|
||||
secretKeyFile = "/var/secrets/cache-private-key.pem";
|
||||
};
|
||||
|
||||
nginx.virtualHosts."violet.booping.local" = {
|
||||
forceSSL = false;
|
||||
# sslCertificate = "/var/lib/acme/liv.town/cert.pem";
|
||||
# sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
|
||||
locations."/" = {
|
||||
proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue