nixos/modules/security/age.nix

17 lines
275 B
Nix
Raw Normal View History

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