summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/pc/default.nix5
-rw-r--r--modules/pc/networking/pia.nix7
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/pc/default.nix b/modules/pc/default.nix
index cf77533..b73777b 100644
--- a/modules/pc/default.nix
+++ b/modules/pc/default.nix
@@ -17,5 +17,8 @@
git
];
- sops.secrets.samba_secrets.sopsFile = "${self}/secrets/hosts.yaml";
+ sops.secrets = {
+ samba_secrets.sopsFile = "${self}/secrets/hosts.yaml";
+ pia.sopsFile = "${self}/secrets/kansai.yaml";
+ };
}
diff --git a/modules/pc/networking/pia.nix b/modules/pc/networking/pia.nix
index d52dbf8..7344a24 100644
--- a/modules/pc/networking/pia.nix
+++ b/modules/pc/networking/pia.nix
@@ -1,10 +1,7 @@
-{ secrets, ... }:
+{ config, ... }:
{
services.pia = {
enable = true;
-
- authUserPass = {
- inherit (secrets.pia) username password;
- };
+ authUserPassFile = config.sops.secrets.pia.path;
};
}