21 lines
289 B
Nix
21 lines
289 B
Nix
{
|
|
outputs,
|
|
options,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.modules.security.age;
|
|
in {
|
|
options.modules.security.sops = {
|
|
enable = lib.mkEnableOption false;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
sops
|
|
];
|
|
};
|
|
}
|