pkgs: Add VPN
This commit is contained in:
parent
238d9480b4
commit
99ce0248f3
@ -10,5 +10,6 @@
|
||||
./hyprland.nix
|
||||
./trim.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
|
||||
playerctl
|
||||
duf
|
||||
v2raya
|
||||
|
||||
# GUI utils
|
||||
feh
|
||||
|
Loading…
x
Reference in New Issue
Block a user