pkgs: Add VPN
This commit is contained in:
parent
238d9480b4
commit
99ce0248f3
@ -10,5 +10,6 @@
|
|||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
./trim.nix
|
./trim.nix
|
||||||
./bluetooth.nix
|
./bluetooth.nix
|
||||||
|
./vpn.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
13
nixos/modules/vpn.nix
Normal file
13
nixos/modules/vpn.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
systemd.services.v2raya = {
|
||||||
|
enable = true;
|
||||||
|
description = "v2rayA gui client";
|
||||||
|
after = [ "network.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
Restart = "always";
|
||||||
|
ExecStart = "${pkgs.v2raya}/bin/v2rayA";
|
||||||
|
};
|
||||||
|
path = with pkgs; [ iptables bash ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
};
|
||||||
|
}
|
@ -66,6 +66,7 @@
|
|||||||
helix
|
helix
|
||||||
playerctl
|
playerctl
|
||||||
duf
|
duf
|
||||||
|
v2raya
|
||||||
|
|
||||||
# GUI utils
|
# GUI utils
|
||||||
feh
|
feh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user