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