temp
This commit is contained in:
parent
cb4a8f024f
commit
40648d4041
@ -1,8 +1,10 @@
|
|||||||
|
# Network-wide ads & trackers blocking DNS server
|
||||||
|
# Change your router primary DNS server to {this server IP} to make it network wide.
|
||||||
{
|
{
|
||||||
services.adguardhome ={
|
services.adguardhome ={
|
||||||
enable = true;
|
enable = true;
|
||||||
host = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
port = 3000;
|
port = 3000;
|
||||||
openFirewall = true;
|
openFirewall = true; # Open port 53(dns) & 3000(webui)
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
# CloudFlare Dynamic DNS client
|
||||||
{
|
{
|
||||||
services.cloudflare-dyndns = {
|
services.cloudflare-dyndns = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -25,7 +25,7 @@ let
|
|||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
|
||||||
."startpage/index.html".text = ''
|
# fix "startpage/index.html".text = ''
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# Nextcloud
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
hostname = "cloud.anotherhadi.com";
|
hostname = "cloud.anotherhadi.com";
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# Nginx Reverse Proxy & ACME certs
|
||||||
{config, ...}:{
|
{config, ...}:{
|
||||||
services.nginx.enable = true;
|
services.nginx.enable = true;
|
||||||
security.acme = {
|
security.acme = {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# Push Notification Server
|
||||||
# https://mynixos.com/nixpkgs/options/services.ntfy-sh
|
# https://mynixos.com/nixpkgs/options/services.ntfy-sh
|
||||||
let
|
let
|
||||||
hostname = "ntfy.anotherhadi.com";
|
hostname = "ntfy.anotherhadi.com";
|
||||||
@ -9,7 +10,7 @@ in{
|
|||||||
settings = {
|
settings = {
|
||||||
base-url = url;
|
base-url = url;
|
||||||
listen-http = "${port}";
|
listen-http = "${port}";
|
||||||
# auth-file
|
# auth-file = "/etc/ntfy-sh/authfile"
|
||||||
auth-default-access = "deny-all";
|
auth-default-access = "deny-all";
|
||||||
behind-proxy = true;
|
behind-proxy = true;
|
||||||
};
|
};
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# SSH server
|
||||||
{
|
{
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# Firewall & fail2ban
|
||||||
{
|
{
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
services.fail2ban = {
|
services.fail2ban = {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
|
# unifi controller service
|
||||||
{
|
{
|
||||||
services.unifi = {
|
services.unifi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true; # 8443(webui) and other port use by AP
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
# Password manager
|
||||||
let
|
let
|
||||||
hostname = "vault.anotherhadi.com";
|
hostname = "vault.anotherhadi.com";
|
||||||
url = "https://"+hostname;
|
url = "https://"+hostname;
|
||||||
|
Loading…
Reference in New Issue
Block a user