Add sops-nix for secret management

This commit is contained in:
Julia Lange 2024-04-07 00:33:49 -07:00
parent 5fe7efc5a2
commit ed2a7f94cf
5 changed files with 86 additions and 73 deletions

View file

@ -0,0 +1,11 @@
{ inputs, pkgs, lib, ... }:
let rootPath = ./.; in
{
imports = [ inputs.sops-nix.nixosModules.sops ];
sops = {
defaultSopsFile = rootPath + "secrets.yaml";
defaultSopsFormat = "yaml";
age.keyFile = "/home/pan/.config/sops/age/keys.txt";
};
}