nixos/modules/security/sops.nix
2023-10-06 10:12:16 +04:00

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
];
};
}