update
This commit is contained in:
15
hosts/common/global/sops.nix
Normal file
15
hosts/common/global/sops.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
inputs,
|
||||
outputs,
|
||||
...
|
||||
}: let
|
||||
isEd25519 = k: k.type == "ed25519";
|
||||
getKeyPath = k: k.path;
|
||||
keys = builtins.filter isEd25519 config.services.openssh.hostKeys;
|
||||
in {
|
||||
imports = [inputs.sop-nix.nixosModules.sops];
|
||||
|
||||
sops = {
|
||||
age.sshKeyPaths = map getKeyPath keys;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user