This commit is contained in:
2025-11-07 19:21:31 +03:00
parent 300a519614
commit f9eb7e8bdc
10 changed files with 60 additions and 37 deletions
+1
View File
@@ -82,6 +82,7 @@ let
throttled.enable = true;
journald = {
extraConfig = ''
SystemMaxUse=512M
'';
};
+7 -3
View File
@@ -44,6 +44,7 @@ let
preload.enable = true;
journald = {
extraConfig = ''
SystemMaxUse=512M
'';
};
@@ -124,8 +125,8 @@ let
allowPing = true;
};
enableIPv6 = true;
interfaces.ens3 = {
useDHCP = true;
interfaces.enp0s3 = {
useDHCP = false;
ipv6.addresses = [
{
address = "2a13:7c00:10:6:f816:3eff:fe36:fe1b";
@@ -133,7 +134,10 @@ let
}
];
};
defaultGateway6 = "2a13:7c00:10:6::1";
defaultGateway6 = {
address = "2a13:7c00:10:6::1";
interface = "enp0s3";
};
};
system = {
+1
View File
@@ -24,6 +24,7 @@ let
services = {
journald = {
extraConfig = ''
SystemMaxUse=512M
'';
};
+1
View File
@@ -36,6 +36,7 @@
polkit = {
enable = true;
extraConfig = ''
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel")){ // for sudo
return polkit.Result.YES;
+1
View File
@@ -19,6 +19,7 @@
theme = "robbyrussell";
};
shellInit = ''
beetn() {
echo "$*" | aichat -cer beets
}
+1
View File
@@ -153,6 +153,7 @@ in
];
requires = [ "coolwsd.service" ];
script = ''
${occ}/bin/nextcloud-occ config:app:set richdocuments wopi_url --value ${lib.escapeShellArg wopi_url}
${occ}/bin/nextcloud-occ config:app:set richdocuments public_wopi_url --value ${lib.escapeShellArg public_wopi_url}
${occ}/bin/nextcloud-occ config:app:set richdocuments wopi_allowlist --value ${lib.escapeShellArg wopi_allowlist}
+1
View File
@@ -14,6 +14,7 @@
#after = [ ];
requisite = [ "mnt-archive.mount" ]; # hard-code
script = ''
${pkgs.rsync}/bin/rsync -rtv --delete ${xlib.dirs.services-folder}/ ${xlib.dirs.archive-drive}/Services/
'';
serviceConfig = {
+3
View File
@@ -36,15 +36,18 @@
WorkingDirectory = "${xlib.dirs.user-services}/zapret";
User = "root";
ExecStart = ''
/run/current-system/sw/bin/bash ${xlib.dirs.user-services}/zapret/main_script.sh -nointeractive
'';
ExecStop = ''
/run/current-system/sw/bin/bash ${xlib.dirs.user-services}/zapret/stop_and_clean_nft.sh
'';
# ExecStopPost = ''
# /run/current-system/sw/bin/echo "Сервис завершён"
# '';
PIDFile = ''
/run/zapret_discord_youtube.pid
'';
# Restart = "on-failure";
+1
View File
@@ -64,6 +64,7 @@
TimeoutSec = 300;
};
script = ''
cd /mnt/containers/3x-ui
podman build -t compose2nix/3xui_app -f ./Dockerfile .
'';
+9
View File
@@ -25,6 +25,7 @@ in
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
@@ -46,6 +47,7 @@ in
# kTLS = true;
locations."/.well-known/discord" = {
extraConfig = ''
default_type text/plain;
return 200 "dh=c2d103553a4cfdaa1b7952a87a7d8120a1e167cc";
'';
@@ -60,6 +62,7 @@ in
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
@@ -74,6 +77,7 @@ in
};
};
extraConfig = ''
client_max_body_size 5G;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
@@ -89,6 +93,7 @@ in
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
@@ -111,6 +116,7 @@ in
# };
};
extraConfig = ''
client_max_body_size 5G;
'';
};
@@ -123,6 +129,7 @@ in
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
@@ -135,6 +142,7 @@ in
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
@@ -146,6 +154,7 @@ in
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};