Deploy sops age key with homeage

This commit is contained in:
Pim Kunis 2024-06-13 09:01:57 +02:00
parent d11fc9ba6d
commit 9c83729db0
3 changed files with 7 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }: {
{ pkgs, lib, config, flake, ... }: {
imports = [
./modules/home-manager/neovim
./modules/home-manager/firefox
@ -188,6 +188,11 @@
homeage = {
identityPaths = [ "/home/pim/.ssh/age_ed25519" ];
installationType = "systemd";
file."sops-keys.txt" = {
source = "${flake}/secrets/sops-keys.txt.age";
symlinks = [ "${config.xdg.configHome}/sops/age/keys.txt" ];
};
};
dconf.settings = with lib.hm.gvariant; {

View file

@ -13,4 +13,5 @@ in
"syncthing-cert.pem.age".publicKeys = publicKeys;
"keepassxc.ini.age".publicKeys =
publicKeys; # Secret agent causes private keys in config file.
"sops-keys.txt.age".publicKeys = publicKeys;
}

BIN
secrets/sops-keys.txt.age Normal file

Binary file not shown.