mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
123
This commit is contained in:
@@ -52,6 +52,7 @@ in
|
|||||||
vscodium
|
vscodium
|
||||||
ayugram-desktop
|
ayugram-desktop
|
||||||
vesktop
|
vesktop
|
||||||
|
discord
|
||||||
gramps
|
gramps
|
||||||
kdePackages.filelight
|
kdePackages.filelight
|
||||||
localsend
|
localsend
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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 "Сервис завершён"
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user