This commit is contained in:
2025-09-16 20:12:01 +03:00
parent 29d975231a
commit cc874ab34f
4 changed files with 10 additions and 8 deletions
+1
View File
@@ -52,6 +52,7 @@ in
vscodium vscodium
ayugram-desktop ayugram-desktop
vesktop vesktop
discord
gramps gramps
kdePackages.filelight kdePackages.filelight
localsend localsend
+1
View File
@@ -27,6 +27,7 @@
# shell # shell
ff = "clear && fastfetch"; ff = "clear && fastfetch";
l = "ls -l"; l = "ls -l";
st = "systemctl-tui";
# ssh # ssh
s-1 = "ssh sapphira-1"; s-1 = "ssh sapphira-1";
+1 -1
View File
@@ -37,7 +37,7 @@
}; };
user-services = lib.mkOption { user-services = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "${config.xlib.dirs.user-home}/Misc/Devices/Services"; default = "${config.xlib.dirs.user-home}/.other";
description = "User services directory."; description = "User services directory.";
}; };
user-storage = lib.mkOption { user-storage = lib.mkOption {
+7 -7
View File
@@ -17,16 +17,16 @@
iproute2 iproute2
coreutils coreutils
]; ];
unitConfig = {
After = [ "network-online.target" ];
Wants = [ "network-online.target" ];
};
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
WorkingDirectory = "${xlib.dirs.user-services}/Misc/Devices/Services/zapret/137"; WorkingDirectory = "${xlib.dirs.user-services}/zapret";
User = "root"; User = "root";
ExecStart = '' ExecStart = "${pkgs.bash}/bin/bash ${xlib.dirs.user-services}/zapret/main_script.sh -nointeractive";
${pkgs.bash}/bin/bash ${xlib.dirs.user-services}/Misc/Devices/Services/zapret/main_script.sh -nointeractive ExecStop = "${pkgs.bash}/bin/bash ${xlib.dirs.user-services}/zapret/stop_and_clean_nft.sh";
'';
ExecStop = ''
${pkgs.bash}/bin/bash ${xlib.dirs.user-services}/Misc/Devices/Services/zapret/stop_and_clean_nft.sh
'';
ExecStopPost = '' ExecStopPost = ''
${pkgs.coreutils}/bin/echo "Сервис завершён" ${pkgs.coreutils}/bin/echo "Сервис завершён"
''; '';