nix: sops-nix

This commit is contained in:
js0ny 2025-11-04 08:48:21 +00:00
parent 050799b77f
commit a32917bd22
6 changed files with 118 additions and 103 deletions

View file

@ -1,5 +1,9 @@
# ~/.config/nixcfgs/users/js0ny/default.nix
{...}: {
{
pkgs,
config,
...
}: {
imports = [
# General config
./default.nix
@ -56,5 +60,25 @@
../../modules/home/dev/verilog.nix
];
home.packages = with pkgs; [
rose-pine-cursor
];
sops = {
# enable = true;
defaultSopsFile = ../../secrets/secrets.yaml;
age.keyFile = "${config.xdg.configHome}/sops/age/keys.txt";
age.generateKey = true;
secrets = {
"OPENROUTER_API_KEY" = {
key = "openrouter_api";
};
};
};
home.sessionVariables = {
OPENROUTER_API_KEY = "$(cat ${config.sops.secrets."OPENROUTER_API_KEY".path})";
};
home.stateVersion = "25.05";
}