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