nixos/modules/security/sops.nix

22 lines
289 B
Nix
Raw Normal View History

2023-10-06 10:12:16 +04:00
{
outputs,
options,
config,
lib,
pkgs,
...
}:
2024-08-01 16:24:09 +04:00
let
2023-10-06 10:12:16 +04:00
cfg = config.modules.security.age;
in {
options.modules.security.sops = {
2024-08-01 16:24:09 +04:00
enable = lib.mkEnableOption false;
2023-10-06 10:12:16 +04:00
};
2024-08-01 16:24:09 +04:00
config = lib.mkIf cfg.enable {
2023-10-06 10:12:16 +04:00
environment.systemPackages = with pkgs; [
sops
];
};
}