Add secret handling

This commit is contained in:
Martin Pander
2026-02-07 15:55:01 +01:00
parent a9c5e2398d
commit 61bb1578e0
8 changed files with 91 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
{
imports = [
./secrets.nix
./sh.nix
./tmux.nix
./git.nix
@@ -18,6 +19,10 @@
yaml-language-server
marksman
dockerfile-language-server
# Secrets management
sops
age
];
news.display = "silent";

View File

@@ -0,0 +1,17 @@
{ inputs, config, ... }:
{
imports = [
inputs.sops-nix.homeManagerModules.sops
];
sops = {
defaultSopsFile = ../../secrets/secrets.yaml;
defaultSopsFormat = "yaml";
age = {
# This is the default location for the age key
keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
};
};
}