diff --git a/overlays/extra-packages.nix b/overlays/extra-packages.nix new file mode 100644 index 0000000000000000000000000000000000000000..fb62f834563b8e70a6b28980f3e659c1f6ab875e --- /dev/null +++ b/overlays/extra-packages.nix @@ -0,0 +1,4 @@ +self: super: +{ + protonvpn-cli-ng = super.callPackage ./protonvpn-cli-ng.nix { }; +} \ No newline at end of file diff --git a/overlays/protonvpn-cli-ng.nix b/overlays/protonvpn-cli-ng.nix new file mode 100644 index 0000000000000000000000000000000000000000..14f578e7223f2135c2bba3d2c54ebcdeac7f0843 --- /dev/null +++ b/overlays/protonvpn-cli-ng.nix @@ -0,0 +1,29 @@ +{ stdenv, lib, fetchFromGitHub, python, python3Packages, openvpn, dialog }: + +with stdenv.lib; + +python3Packages.buildPythonApplication rec { + name = "protonvpn-cli-ng"; + version = "2.2.0"; + + src = fetchFromGitHub { + owner = "protonvpn"; + repo = "protonvpn-cli-ng"; + rev = "v${version}"; + sha256 = "11fvnnr5p3qdc4y10815jnydcjvxlxwkkq9kvaajg0yszq84rwkz"; + }; + + propagatedBuildInputs = + (with python3Packages; [ requests docopt setuptools pythondialog ]) + ++ [ dialog openvpn ]; + + doCheck = false; + + meta = with stdenv.lib; { + description = "Linux command-line client for ProtonVPN"; + homepage = "https://github.com/protonvpn/protonvpn-cli-ng"; + maintainers = [ maintainers.jtcoolen ]; + license = licenses.gpl3; + platforms = platforms.unix; + }; +} diff --git a/profiles/home.nix b/profiles/home.nix index e9376ea9ef3cdff407da901a28e523389ecfba0e..e9659c7357ce334c2d9c7556022bc8f058e623c8 100644 --- a/profiles/home.nix +++ b/profiles/home.nix @@ -14,12 +14,16 @@ }/nixos" ]; - nixpkgs.overlays = [ (import ../overlays/vscode.nix) ]; + nixpkgs.overlays = [ + (import ../overlays/vscode.nix) + (import ../overlays/extra-packages.nix) + ]; home-manager.backupFileExtension = "backup"; home-manager.users.jco = { home.packages = with pkgs; [ + protonvpn-cli-ng hugo # Apps.