mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-05-13 06:15:15 +00:00
i so stupid(( fixed amneziawg service))
This commit is contained in:
parent
cd039dd3b1
commit
6c052df2f7
3 changed files with 7 additions and 6 deletions
|
@ -25,7 +25,9 @@ in
|
|||
system76 = off;
|
||||
};
|
||||
services = {
|
||||
amneziawg = on;
|
||||
amneziawg = on // {
|
||||
config = ./warp.conf;
|
||||
};
|
||||
autocpu = off;
|
||||
dbus = on;
|
||||
deluge = off;
|
||||
|
|
|
@ -30,8 +30,7 @@ in
|
|||
boot.extraModulePackages = with config.boot.kernelPackages; [ amneziawg ];
|
||||
systemd.services.warp = with pkgs; {
|
||||
enable = true;
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ amneziawg-go ];
|
||||
serviceConfig =
|
||||
|
@ -40,11 +39,11 @@ in
|
|||
in
|
||||
{
|
||||
Type = "oneshot";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
ExecStart = mk "up";
|
||||
ExecStop = mk "down";
|
||||
RemainAfterExit = "yes";
|
||||
CapabilityBoundingSet = "CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH";
|
||||
AmbientCapabilities = "CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_SYS_PTRACE CAP_DAC_READ_SEARCH";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -28,8 +28,8 @@ in
|
|||
torrserver = {
|
||||
enable = true;
|
||||
after = [
|
||||
"multi-user.target"
|
||||
"network.target"
|
||||
"multi-user.target"
|
||||
];
|
||||
wantedBy = [
|
||||
"multi-user.target"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue