nixos/modules/security/age.nix
2024-08-01 16:24:09 +04:00

16 lines
275 B
Nix

{ outputs, options, config, lib, pkgs, ...}:
let
cfg = config.modules.security.age;
in
{
options.modules.security.age = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
age
];
};
}