This commit is contained in:
2023-03-08 18:00:18 +00:00
parent 56e5cde883
commit 9c82720103
18 changed files with 213 additions and 159 deletions

View File

@@ -1,9 +1,11 @@
{ lib, pkgs, config, hostName,... }:
{ lib, pkgs, config, ... }:
with lib;
let
cfg = config.custom.mullvad;
secretstore = config._secretstore;
host = config.networking.hostName;
in {
@@ -15,7 +17,7 @@ in {
services.mullvad-vpn.enable = true;
sops.secrets.device_json = {
sopsFile = "${secretstore}/hosts/${hostName}/mullvad/device.json";
sopsFile = "${secretstore}/hosts/${host}/mullvad/device.json";
format = "binary";
};