Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2025-07-16 19:25:32 +02:00
parent f74e15288b
commit 18c8afb616
18 changed files with 150 additions and 147 deletions

View File

@@ -1,5 +1,7 @@
{ config, ... }:
let domain = "adguard.hadi.diy";
# Adguard is a network-wide ad blocker
# When installed, open localhost:3000 to setup
{config, ...}: let
domain = "adguard.hadi.diy";
in {
services = {
adguardhome = {
@@ -11,8 +13,7 @@ in {
useACMEHost = "hadi.diy";
forceSSL = true;
locations."/" = {
proxyPass =
"http://127.0.0.1:${toString config.services.adguardhome.port}";
proxyPass = "http://127.0.0.1:${toString config.services.adguardhome.port}";
};
};
};

View File

@@ -1,5 +1,6 @@
{ config, ... }:
let domain = "vault.hadi.diy";
# Bitwarden (or vaultwarden) is a self-hosted password manager.
{config, ...}: let
domain = "vault.hadi.diy";
in {
services = {
vaultwarden = {
@@ -18,8 +19,8 @@ in {
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${
toString config.services.vaultwarden.config.ROCKET_PORT
}";
toString config.services.vaultwarden.config.ROCKET_PORT
}";
};
};
};

View File

@@ -1,3 +1,4 @@
# Firewall configuration for NixOS
{
networking.firewall = {
enable = true;