private internet access (vpn)

This commit is contained in:
Hadi
2024-11-05 15:39:11 +01:00
parent 67f96bde02
commit 53efbb88d6
5 changed files with 22 additions and 5 deletions

10
nixos/pia.nix Normal file
View File

@@ -0,0 +1,10 @@
{ config, ... }: {
services.pia.enable = true;
# Alternatively, you can use the `authUserPassFile` attribute if you are using
# a Nix secrets manager. Here's an example using sops-nix.
#
# The secret you provide to `authUserPassFile` should be a multiline string with
# a single username on the first line a single password on the second line.
services.pia.authUserPassFile = "/home/hadi/.config/pia/pia.ovpn";
}