From d0a0fbc21374965f1a0452f4d6de4696731997a1 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Sun, 10 Jan 2021 19:54:54 -0500 Subject: [PATCH] nix: package up an overlay for vpngate --- nix/home.nix | 8 +++++++- nix/overlays/default.nix | 1 + nix/overlays/vpngate.nix | 26 ++++++++++++++++++++++++++ nix/packages.nix | 4 +--- 4 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 nix/overlays/vpngate.nix diff --git a/nix/home.nix b/nix/home.nix index d76ff91..6781fe9 100644 --- a/nix/home.nix +++ b/nix/home.nix @@ -130,7 +130,6 @@ }; initExtra = '' - export GOPATH=~/go export GPG_TTY=$(tty) export PATH=$PATH:~/.cargo/bin export PATH=$PATH:~/.local/bin @@ -230,6 +229,13 @@ }; }; + + go = { + enable = true; + goBin = "go/bin"; + goPath = "go"; + }; + tmux = { enable = true; clock24 = true; diff --git a/nix/overlays/default.nix b/nix/overlays/default.nix index 2bf4547..06ad3ff 100644 --- a/nix/overlays/default.nix +++ b/nix/overlays/default.nix @@ -3,5 +3,6 @@ [ (import ./rfd.nix) (import ./lastpass.nix) + (import ./vpngate.nix) ] diff --git a/nix/overlays/vpngate.nix b/nix/overlays/vpngate.nix new file mode 100644 index 0000000..8df97cd --- /dev/null +++ b/nix/overlays/vpngate.nix @@ -0,0 +1,26 @@ +self: super: + +rec { + + vpngate = with self; buildGoModule rec { + pname = "vpngate"; + version = "v0.0.2"; + + vendorSha256 = "1ys2rvrbxgsrvmjdxqgpmxf0m9nlp905gnr2mrf3c7iaxm86wgf8"; + + src = fetchFromGitHub { + owner = "davegallant"; + repo = "vpngate"; + rev = version; + sha256 = "0ky3wd04xd4sb2zskrrlbgys2gw88yqhngg3bl0sjy8kr6099vfn"; + }; + + meta = with super.lib; { + homepage = "https://www.vpngate.net"; + description = "a client for vpngate.net"; + license = licenses.asl20; + maintainers = with maintainers; [ davegallant ]; + platforms = platforms.linux ++ platforms.darwin; + }; + }; +} diff --git a/nix/packages.nix b/nix/packages.nix index fcc5e7c..84aa3cc 100644 --- a/nix/packages.nix +++ b/nix/packages.nix @@ -53,9 +53,6 @@ with pkgs; [ openvpn postman - # go - go - # terraform terraform-ls terraform_0_14 @@ -148,4 +145,5 @@ with pkgs; [ # overlays rfd lpass + vpngate ]