sops ace fix

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-06-10 19:57:23 +02:00
parent 8a47706856
commit fa3348c5c2
3 changed files with 32 additions and 33 deletions

View File

@@ -1,12 +1,12 @@
{ hyper, inputs, ... }:
{ pkgs, hyper, inputs, ... }:
{
imports = [
inputs.sops-nix.homeManagerModules.sops
];
sops = {
# age.keyFile = "/home/${user}/.config/sops/age/keys.txt";
gnupg.home = "${hyper.home}/.gnupg";
age.keyFile = pkgs.lib.mkIf (hyper.host == "NxACE") "${hyper.home}.age_nx2_key_13.txt";
gnupg.home = pkgs.lib.mkIf (hyper.host != "NxACE") "${hyper.home}.gnupg";
defaultSopsFile = ../sops-secrets.yaml;
# %r is $XDG_RUNTIME_DIR