From 0c9e904943a14c696055697beeef74da64dab5b0 Mon Sep 17 00:00:00 2001 From: obadz Date: Mon, 30 May 2016 14:23:25 +0100 Subject: [PATCH] toxvpn: restartIfChanged = false & minor cleanups --- nixos/modules/services/networking/toxvpn.nix | 8 +++----- pkgs/tools/networking/toxvpn/default.nix | 3 ++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/networking/toxvpn.nix b/nixos/modules/services/networking/toxvpn.nix index 8c7ad9b91649..c38424c8e273 100644 --- a/nixos/modules/services/networking/toxvpn.nix +++ b/nixos/modules/services/networking/toxvpn.nix @@ -5,11 +5,7 @@ with lib; { options = { services.toxvpn = { - enable = mkOption { - type = types.bool; - default = false; - description = "enable toxvpn running on startup"; - }; + enable = mkEnableOption "enable toxvpn running on startup"; localip = mkOption { type = types.string; @@ -43,6 +39,8 @@ with lib; Restart = "on-success"; Type = "notify"; }; + + restartIfChanged = false; # Likely to be used for remote admin }; users.extraUsers = { diff --git a/pkgs/tools/networking/toxvpn/default.nix b/pkgs/tools/networking/toxvpn/default.nix index 25d62ba04cc2..3b5627db2156 100644 --- a/pkgs/tools/networking/toxvpn/default.nix +++ b/pkgs/tools/networking/toxvpn/default.nix @@ -27,10 +27,11 @@ in stdenv.mkDerivation { cmakeFlags = [ "-DSYSTEMD=1" ]; - meta = { + meta = with stdenv.lib; { description = "A powerful tool that allows one to make tunneled point to point connections over Tox"; homepage = https://github.com/cleverca22/toxvpn; license = licenses.gpl3; + maintainers = with maintainers; [ cleverca22 obadz ]; platforms = platforms.linux; }; }