Add sops-nix for secret management
This commit is contained in:
parent
5fe7efc5a2
commit
ed2a7f94cf
5 changed files with 86 additions and 73 deletions
11
modules/secrets/sops-nix/default.nix
Normal file
11
modules/secrets/sops-nix/default.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue