some sops stuff

This commit is contained in:
jopejoe1 2024-10-12 17:27:53 +02:00
parent 5a3656cf11
commit dda02c86f8
3 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{
config,
lib,
pkgs,
self,
...
}:
let
cfg = config.jopejoe1.sops;
in
{
options.jopejoe1.sops = {
enable = (lib.mkEnableOption "Enable sops") // { default = true;};
};
config = lib.mkIf cfg.enable {
sops = {
defaultSopsFile = ../../secrets/main.yaml;
age = {
keyFile = "/home/jopejoe1/.config/sops/age/keys.txt";
};
};
};
}