mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-25 14:41:44 +00:00
19 lines
422 B
Nix
19 lines
422 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
with lib; let
|
|
# secretstore = config._secretstore;
|
|
host = config.networking.hostName;
|
|
# secretpath = "../../../secrets/hosts/${host}/mullvad/device.json";
|
|
in {
|
|
sops.secrets.device_json = {
|
|
sopsFile = ../../../secrets/hosts/${host}/mullvad/device.json;
|
|
format = "binary";
|
|
};
|
|
|
|
environment.etc."mullvad-vpn/device.conf".source = config.sops.secrets.device_json.path;
|
|
}
|