add security modules

This commit is contained in:
Sakooooo 2023-08-31 13:35:16 +04:00
parent 99b612d268
commit ad12513462
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 23 additions and 0 deletions

View file

@ -20,6 +20,7 @@
outputs.nixosModules.hardware
outputs.nixosModules.dev
outputs.nixosModules.media
outputs.nixosModules.security
];
# flakes

17
modules/security/age.nix Normal file
View file

@ -0,0 +1,17 @@
{ 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
];
};
}

View file

@ -0,0 +1,5 @@
{
imports = [
./age.nix
];
}