This commit is contained in:
2025-10-08 21:30:48 +03:00
parent 99b35f6045
commit 48bd82b30f
6 changed files with 27 additions and 37 deletions
-1
View File
@@ -34,7 +34,6 @@
polkit = {
enable = true;
extraConfig = ''
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel")){ // for sudo
return polkit.Result.YES;
+3
View File
@@ -29,6 +29,9 @@
l = "ls -l";
lg = "lazygit";
st = "systemctl-tui";
gp = "git pull";
ns = "nh os switch";
gp-ns = "gp && ns";
# ssh
z-s = "ssh sapphira";
-1
View File
@@ -13,7 +13,6 @@
#after = [ ];
requisite = [ "mnt-archive.mount" ]; # hard-code
script = ''
${pkgs.rsync}/bin/rsync -rtv --delete ${xlib.dirs.services-folder}/immich/ ${xlib.dirs.archive-drive}/Services/immich/
${pkgs.rsync}/bin/rsync -rtv --delete ${xlib.dirs.services-folder}/nextcloud/ ${xlib.dirs.archive-drive}/Services/nextcloud/
${pkgs.rsync}/bin/rsync -rtv --delete ${xlib.dirs.services-folder}/node-red/ ${xlib.dirs.archive-drive}/Services/node-red/
-3
View File
@@ -36,18 +36,15 @@
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,7 +64,6 @@
TimeoutSec = 300;
};
script = ''
cd /mnt/containers/3x-ui
podman build -t compose2nix/3xui_app -f ./Dockerfile .
'';
-7
View File
@@ -25,7 +25,6 @@ in
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
@@ -50,7 +49,6 @@ in
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
@@ -65,7 +63,6 @@ in
};
};
extraConfig = ''
client_max_body_size 5G;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
@@ -81,7 +78,6 @@ in
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
@@ -104,7 +100,6 @@ in
# };
};
extraConfig = ''
client_max_body_size 5G;
'';
};
@@ -117,7 +112,6 @@ in
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
@@ -130,7 +124,6 @@ in
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};