nixos/modules/security/sops.nix

22 lines
291 B
Nix
Raw Normal View History

2023-10-06 10:12:16 +04:00
{
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
];
};
}