diff options
| author | Fuwn <[email protected]> | 2024-10-13 08:54:53 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-13 08:54:53 +0000 |
| commit | c534a49d67dc084939af99d78e8dd501b44bf4c4 (patch) | |
| tree | de76c21758172104a9188ecd3f50d7c95d04bed7 | |
| parent | docs(readme): update credits (diff) | |
| download | pia.nix-c534a49d67dc084939af99d78e8dd501b44bf4c4.tar.xz pia.nix-c534a49d67dc084939af99d78e8dd501b44bf4c4.zip | |
refactor(flake): use system-specific nixpkgs everywhere
| -rw-r--r-- | flake.nix | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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="; |