Compare commits
No commits in common. "b5fca786542d07cc5b1716362644644cc1ab65c2" and "63c60391cceee3edf17d2fe0e01d31151ea9b629" have entirely different histories.
b5fca78654
...
63c60391cc
@ -45,6 +45,8 @@
|
||||
autoUpgrade = true;
|
||||
};
|
||||
|
||||
sops.secrets.wg-monitoring = {};
|
||||
|
||||
clerie.monitoring = {
|
||||
enable = true;
|
||||
id = "391";
|
||||
|
9
hosts/dn42-ildix-service/secrets/wg-monitoring.age
Normal file
9
hosts/dn42-ildix-service/secrets/wg-monitoring.age
Normal file
@ -0,0 +1,9 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 HwR33w JKCBhuwIMcH042SNcp+OQjgvpMogmXH9who0wy9Jh2g
|
||||
waaOvyKbg8AVEQ8BnLONus0y237GK8do0nOWovYv/Hg
|
||||
-> ssh-ed25519 7zj2eQ cMRXtuy4Jsl4X/qstN3wxztrEfCh+lz48+jn9cEO614
|
||||
/LcwitDqSk7yEFqUeJvpWo+6lqTI8UjuBi03JxRTx/A
|
||||
-> .-grease sMU_}
|
||||
NOvvGJmEfeBYR6Q
|
||||
--- ju0+LEUzdv2AW1Zaf1/YBo5+5ZKc+XhYUOt/p/NqYWU
|
||||
Ä"'‘oč©®9@1źF&Ż'VÇ︪whĆ$3kj›®<E280BA>v¦őę&ŰOŔ$}śN€W–p[ôČeÚM
˙eĉĚCďE‹@ÖĚü’ÚSc1
|
@ -54,17 +54,8 @@ rec {
|
||||
}) (lib.filterAttrs (name: type: (type == "regular") && (lib.hasSuffix ".age" name) ) (if builtins.pathExists secretsPath then builtins.readDir secretsPath else {}));
|
||||
})
|
||||
# Automatically load secrets from sops file for host
|
||||
({ config, lib, ... }: {
|
||||
({ ... }: {
|
||||
sops.defaultSopsFile = ../hosts + "/${name}/secrets.json";
|
||||
sops.secrets = let
|
||||
secretFile = config.sops.defaultSopsFile;
|
||||
secretNames = builtins.filter (name: name != "sops") (builtins.attrNames (builtins.fromJSON (builtins.readFile secretFile)));
|
||||
secrets = if builtins.pathExists secretFile then
|
||||
lib.listToAttrs (builtins.map (name: lib.nameValuePair name {}) secretNames)
|
||||
else
|
||||
{};
|
||||
in
|
||||
secrets;
|
||||
})
|
||||
];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user