mirror of
https://github.com/oqyude/nixos.git
synced 2026-08-09 08:03:16 +03:00
Compare commits
2
Commits
0893ad28e7
...
17b317998d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17b317998d | ||
|
|
e2e0e57918 |
@@ -113,9 +113,10 @@ let
|
|||||||
hostName = "${xlib.device.hostname}";
|
hostName = "${xlib.device.hostname}";
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
# nameservers = [
|
nameservers = [
|
||||||
# "127.0.0.1"
|
"127.0.0.1"
|
||||||
# ];
|
"192.168.1.1"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
system = {
|
system = {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
{
|
{
|
||||||
services.bentopdf = {
|
services.bentopdf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "pdf.home.arpa";
|
domain = "pdf.private";
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# virtualHost = {
|
# virtualHost = {
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
services.chrony = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -10,10 +10,28 @@
|
|||||||
zeroq.su:53 {
|
zeroq.su:53 {
|
||||||
hosts {
|
hosts {
|
||||||
109.248.161.5 x.zeroq.su
|
109.248.161.5 x.zeroq.su
|
||||||
|
192.168.1.20 calibre.zeroq.su
|
||||||
|
192.168.1.20 dns.zeroq.su
|
||||||
|
192.168.1.20 flux.zeroq.su
|
||||||
|
192.168.1.20 git.zeroq.su
|
||||||
|
192.168.1.20 immich.zeroq.su
|
||||||
|
192.168.1.20 kuma.zeroq.su
|
||||||
|
192.168.1.20 nextcloud.zeroq.su
|
||||||
|
192.168.1.20 office.zeroq.su
|
||||||
|
192.168.1.20 pdf.zeroq.su
|
||||||
|
fallthrough
|
||||||
|
}
|
||||||
|
cache 300
|
||||||
|
log
|
||||||
|
}
|
||||||
|
home.arpa:53 {
|
||||||
|
hosts {
|
||||||
|
192.168.1.20 ca.home.arpa
|
||||||
192.168.1.20 calibre.home.arpa
|
192.168.1.20 calibre.home.arpa
|
||||||
192.168.1.20 dns.home.arpa
|
192.168.1.20 dns.home.arpa
|
||||||
192.168.1.20 flux.home.arpa
|
192.168.1.20 flux.home.arpa
|
||||||
192.168.1.20 git.home.arpa
|
192.168.1.20 git.home.arpa
|
||||||
|
192.168.1.20 home.arpa
|
||||||
192.168.1.20 immich.home.arpa
|
192.168.1.20 immich.home.arpa
|
||||||
192.168.1.20 kuma.home.arpa
|
192.168.1.20 kuma.home.arpa
|
||||||
192.168.1.20 nextcloud.home.arpa
|
192.168.1.20 nextcloud.home.arpa
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
../software/beets
|
../software/beets
|
||||||
./bentopdf.nix
|
./bentopdf.nix
|
||||||
./calibre-web.nix
|
./calibre-web.nix
|
||||||
|
./chrony.nix
|
||||||
./coredns.nix
|
./coredns.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
./glances.nix
|
./glances.nix
|
||||||
|
|||||||
+79
-33
@@ -29,13 +29,17 @@ in
|
|||||||
addr = "192.168.1.20";
|
addr = "192.168.1.20";
|
||||||
port = 10000;
|
port = 10000;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
addr = "127.0.0.1";
|
||||||
|
port = 10000;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"office.home.arpa" = {
|
"office.home.arpa" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
};
|
};
|
||||||
"pdf.home.arpa" = {
|
"pdf.private" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
listen = [
|
listen = [
|
||||||
@@ -51,21 +55,38 @@ in
|
|||||||
addr = "192.168.1.20";
|
addr = "192.168.1.20";
|
||||||
port = 8446;
|
port = 8446;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
addr = "127.0.0.1";
|
||||||
|
port = 10000;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 5G;
|
client_max_body_size 5G;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
"pdf.home.arpa" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations = {
|
||||||
|
"/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:8446";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 5G;
|
||||||
|
'';
|
||||||
|
};
|
||||||
"nextcloud.home.arpa" = {
|
"nextcloud.home.arpa" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = "http://${server}:10000";
|
proxyPass = "http://127.0.0.1:10000";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
"/whiteboard" = {
|
"/whiteboard" = {
|
||||||
proxyPass = "http://${server}:3002";
|
proxyPass = "http://127.0.0.1:3002";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -74,10 +95,10 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"ca.home.arpa" = {
|
"ca.home.arpa" = {
|
||||||
forceSSL = false;
|
forceSSL = true;
|
||||||
enableACME = false;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${server}:9000";
|
proxyPass = "http://127.0.0.1:9000";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
@@ -88,7 +109,18 @@ in
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${server}:3000";
|
proxyPass = "http://127.0.0.1:3000";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 5G;
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
"git.zeroq.su" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:3000";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
@@ -110,7 +142,7 @@ in
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${server}:4001";
|
proxyPass = "http://127.0.0.1:4001";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -118,7 +150,7 @@ in
|
|||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${server}:6061";
|
proxyPass = "http://127.0.0.1:6061";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -126,7 +158,7 @@ in
|
|||||||
addSSL = true;
|
addSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${server}:2283";
|
proxyPass = "http://127.0.0.1:2283";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
@@ -137,35 +169,49 @@ in
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${server}:8083";
|
proxyPass = "http://127.0.0.1:8083";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 5G;
|
client_max_body_size 5G;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
# "zeroq.home.arpa" = {
|
"dns.home.arpa" = {
|
||||||
# forceSSL = false;
|
forceSSL = true;
|
||||||
# enableACME = false;
|
enableACME = true;
|
||||||
# root = pkgs.writeTextDir "index.html" ''
|
locations."/" = {
|
||||||
# <!doctype html>
|
proxyPass = "http://127.0.0.1:53";
|
||||||
# <html>
|
};
|
||||||
# <body>
|
extraConfig = ''
|
||||||
# <pre>This server is running in backend.</pre>
|
client_max_body_size 5G;
|
||||||
# </body>
|
'';
|
||||||
# </html>
|
};
|
||||||
# '';
|
"zeroq.home.arpa" = {
|
||||||
# listen = [
|
forceSSL = true;
|
||||||
# {
|
enableACME = true;
|
||||||
# addr = "100.64.0.0";
|
root = pkgs.writeTextDir "index.html" ''
|
||||||
# port = 80;
|
<!doctype html>
|
||||||
# }
|
<html>
|
||||||
# {
|
<body>
|
||||||
# addr = "192.168.1.20";
|
<pre>This server is running in backend.</pre>
|
||||||
# port = 80;
|
</body>
|
||||||
# }
|
</html>
|
||||||
# ];
|
'';
|
||||||
# };
|
listen = [
|
||||||
|
{
|
||||||
|
addr = "100.64.0.0";
|
||||||
|
port = 80;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
addr = "192.168.1.20";
|
||||||
|
port = 80;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
addr = "127.0.0.1";
|
||||||
|
port = 80;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nmbd = {
|
nmbd = {
|
||||||
enable = false;
|
enable = true;
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
global = {
|
global = {
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ in
|
|||||||
dataSource = "${varDir}/db";
|
dataSource = "${varDir}/db";
|
||||||
};
|
};
|
||||||
authority = {
|
authority = {
|
||||||
|
claims = {
|
||||||
|
defaultTLSCertDuration = "2160h";
|
||||||
|
maxTLSCertDuration = "2160h";
|
||||||
|
};
|
||||||
provisioners = [
|
provisioners = [
|
||||||
{
|
{
|
||||||
type = "ACME";
|
type = "ACME";
|
||||||
|
|||||||
Reference in New Issue
Block a user