sops: first secret integration (nix-settings)
This commit is contained in:
parent
e8e402e9b7
commit
8914fa79ed
10 changed files with 86 additions and 5 deletions
11
common/sops.nix
Normal file
11
common/sops.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
inputs = config.inputInjection.flake-inputs;
|
||||
in
|
||||
{
|
||||
sops = {
|
||||
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
defaultSopsFile = lib.mkDefault toString (./. + "/hosts/${config.networking.hostname}/secrets.ini");
|
||||
defaultSopsFormat = "yaml"; # is the default. ini had some template rendering issues in practice
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue