nixos/modules/security/sops.nix

22 lines
290 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
2024-09-28 23:16:57 +04:00
cfg = config.modules.security.sops;
2023-10-06 10:12:16 +04:00
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
];
};
}