22 lines
291 B
Nix
22 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
|
||
|
];
|
||
|
};
|
||
|
}
|