sops: workaround for hashedPassword Mic92/sops-nix#627
This commit is contained in:
parent
8d5f52de19
commit
c7bdc2d7fd
3 changed files with 30 additions and 16 deletions
|
|
@ -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";
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue