{ pkgs, ... }@all: with all; { imports = [ inputs.sops-nix.homeManagerModules.sops ]; sops = { age.keyFile = if (hyper.host == "NxXPS") then "${hyper.home}/vault/age/sops-xps-home.key" else if (hyper.host == "NxACE") then "${hyper.home}/.age_nx2_key_13.txt" else if (hyper.host == "NxNORTH") then "${hyper.home}/.age_nx2_key_13.txt" else "unkown host in sops.nix"; defaultSopsFile = ../sops-secrets.yaml; secrets = { "example" = { path = "%r/secrets/example"; }; }; }; }