mirror of
https://github.com/gburd/nix-config.git
synced 2024-08-04 21:05:27 +00:00
![Greg Burd](/assets/img/avatar_default.png)
Many thangs to the hard work and generous availability of: git@github.com:Misterio77/nix-config.git
16 lines
291 B
Nix
16 lines
291 B
Nix
{ inputs, lib, config, ... }:
|
|
let
|
|
isEd25519 = k: k.type == "ed25519";
|
|
getKeyPath = k: k.path;
|
|
keys = builtins.filter isEd25519 config.services.openssh.hostKeys;
|
|
in
|
|
{
|
|
imports = [
|
|
inputs.sops-nix.nixosModules.sops
|
|
];
|
|
|
|
sops = {
|
|
age.sshKeyPaths = map getKeyPath keys;
|
|
};
|
|
}
|