sops: workaround for hashedPassword Mic92/sops-nix#627

This commit is contained in:
Christoph Hollizeck 2025-12-04 11:46:27 +01:00
parent 8d5f52de19
commit c7bdc2d7fd
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
3 changed files with 30 additions and 16 deletions

View file

@ -25,6 +25,7 @@
config,
inputs,
pkgs,
lib,
...
}:
{
@ -51,8 +52,10 @@
defaultSopsFormat = "yaml";
age = {
keyFile = "/home/cholli/.config/sops/age/keys.txt";
sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
keyFile = lib.mkIf (
config.networking.hostName == "yggdrasil"
) "/home/cholli/.config/sops/age/keys.txt";
};
};