mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 14:26:33 +01:00
27 lines
384 B
Nix
27 lines
384 B
Nix
|
{
|
||
|
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";
|
||
|
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|