diff options
| author | Adam Washington <[email protected]> | 2021-09-10 16:27:04 +0000 |
|---|---|---|
| committer | Adam Washington <[email protected]> | 2021-09-10 16:27:04 +0000 |
| commit | e1ee2668d0158e968c72813e17bd2e72fd73d0ea (patch) | |
| tree | 4ab72b218a7fa90972e332237505f1e32c1f17bd | |
| parent | Full functioning vpn module (diff) | |
| download | pia.nix-e1ee2668d0158e968c72813e17bd2e72fd73d0ea.tar.xz pia.nix-e1ee2668d0158e968c72813e17bd2e72fd73d0ea.zip | |
Add documentation
| -rw-r--r-- | README.md | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..bb4f22b --- /dev/null +++ b/README.md @@ -0,0 +1,43 @@ +# Nixos Module for PIA + +The repo contains a flake module to add the Private Internet Access +VPNs to your Nixos system. + +## Dislcaimer + +I'm not associated with PIA in any way. Depending on when you read +this, I may not even be a subscriber with them any longer. However, I +thought it might be useful for other people who are. I also vainly +hoped that it might inspire people to release Nixos modules for other +services. + +## Installation + +You'll need to include this module in your `flake.nix` file: + +``` +{ + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05"; + inputs.pia.url = "path:/home/adam/Code/nixos-pia"; + inputs.pia.inputs.nixpkgs.follows = "nixpkgs"; + + outputs = { self, nixpkgs, pia }: { + nixosConfigurations.mcp = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + pia.nixosModule + ./config.nix + ]; + }; +``` + +And you'll need to enable the vpn in another module. For example, you might have the following in your `config.nix` + +``` +{ config, ...}: +{ + services.pia.enable = true; + services.pia.authUserPass.username = "tron"; + services.pia.authUserPass.password = "hunter42"; +} +``` |