new flake

This commit is contained in:
2023-12-01 22:42:33 +00:00
parent 5d7b023166
commit 8c0f9076d8
25 changed files with 593 additions and 1254 deletions

View File

@@ -5,13 +5,13 @@
...
}:
with lib; let
secretstore = config._secretstore;
# secretstore = config._secretstore;
host = config.networking.hostName;
cfg = config.custom.mullvad;
secret =
if builtins.pathExists "${secretstore}/hosts/${host}/mullvad/device.json"
if builtins.pathExists "../../..//hosts/${host}/mullvad/device.json"
then ./secrets.nix
else {};
in {

View File

@@ -5,13 +5,13 @@
...
}:
with lib; let
secretstore = config._secretstore;
# secretstore = config._secretstore;
host = config.networking.hostName;
secretpath = "${secretstore}/hosts/${host}/mullvad/device.json";
# secretpath = "../../../secrets/hosts/${host}/mullvad/device.json";
in {
sops.secrets.device_json = {
sopsFile = "${secretstore}/hosts/${host}/mullvad/device.json";
device_json.format = "binary";
sopsFile = ../../../secrets/hosts/${host}/mullvad/device.json;
format = "binary";
};
environment.etc."mullvad-vpn/device.conf".source = config.sops.secrets.device_json.path;