aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-13 08:54:53 +0000
committerFuwn <[email protected]>2024-10-13 08:54:53 +0000
commitc534a49d67dc084939af99d78e8dd501b44bf4c4 (patch)
treede76c21758172104a9188ecd3f50d7c95d04bed7
parentdocs(readme): update credits (diff)
downloadpia.nix-c534a49d67dc084939af99d78e8dd501b44bf4c4.tar.xz
pia.nix-c534a49d67dc084939af99d78e8dd501b44bf4c4.zip
refactor(flake): use system-specific nixpkgs everywhere
-rw-r--r--flake.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/flake.nix b/flake.nix
index 734ea11..b1f2940 100644
--- a/flake.nix
+++ b/flake.nix
@@ -48,25 +48,25 @@
{ config, ... }:
{
options.services.pia = {
- enable = nixpkgs.lib.mkOption {
+ enable = lib.mkOption {
default = false;
- type = nixpkgs.lib.types.bool;
+ type = lib.types.bool;
};
authUserPass = {
- username = nixpkgs.lib.mkOption {
+ username = lib.mkOption {
default = false;
- type = nixpkgs.lib.types.str;
+ type = lib.types.str;
};
- password = nixpkgs.lib.mkOption {
+ password = lib.mkOption {
default = false;
- type = nixpkgs.lib.types.str;
+ type = lib.types.str;
};
};
};
- config = nixpkgs.lib.mkIf config.services.pia.enable {
+ config = lib.mkIf config.services.pia.enable {
environment.systemPackages =
let
piaPackages = self.packages.${system};
@@ -80,7 +80,7 @@
services.openvpn.servers =
let
- resources = nixpkgs.legacyPackages.${system}.fetchzip {
+ resources = pkgs.fetchzip {
name = "pia-vpn-config";
url = "https://www.privateinternetaccess.com/openvpn/openvpn.zip";
sha256 = "ZA8RS6eIjMVQfBt+9hYyhaq8LByy5oJaO9Ed+x8KtW8=";