forked from mirrors/nixpkgs
toxvpn: restartIfChanged = false & minor cleanups
This commit is contained in:
parent
5c1f0990e3
commit
0c9e904943
|
@ -5,11 +5,7 @@ with lib;
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
services.toxvpn = {
|
services.toxvpn = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "enable toxvpn running on startup";
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = "enable toxvpn running on startup";
|
|
||||||
};
|
|
||||||
|
|
||||||
localip = mkOption {
|
localip = mkOption {
|
||||||
type = types.string;
|
type = types.string;
|
||||||
|
@ -43,6 +39,8 @@ with lib;
|
||||||
Restart = "on-success";
|
Restart = "on-success";
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
restartIfChanged = false; # Likely to be used for remote admin
|
||||||
};
|
};
|
||||||
|
|
||||||
users.extraUsers = {
|
users.extraUsers = {
|
||||||
|
|
|
@ -27,10 +27,11 @@ in stdenv.mkDerivation {
|
||||||
|
|
||||||
cmakeFlags = [ "-DSYSTEMD=1" ];
|
cmakeFlags = [ "-DSYSTEMD=1" ];
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "A powerful tool that allows one to make tunneled point to point connections over Tox";
|
description = "A powerful tool that allows one to make tunneled point to point connections over Tox";
|
||||||
homepage = https://github.com/cleverca22/toxvpn;
|
homepage = https://github.com/cleverca22/toxvpn;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
|
maintainers = with maintainers; [ cleverca22 obadz ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue