add security modules
This commit is contained in:
parent
99b612d268
commit
ad12513462
3 changed files with 23 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
||||||
outputs.nixosModules.hardware
|
outputs.nixosModules.hardware
|
||||||
outputs.nixosModules.dev
|
outputs.nixosModules.dev
|
||||||
outputs.nixosModules.media
|
outputs.nixosModules.media
|
||||||
|
outputs.nixosModules.security
|
||||||
];
|
];
|
||||||
|
|
||||||
# flakes
|
# flakes
|
||||||
|
|
17
modules/security/age.nix
Normal file
17
modules/security/age.nix
Normal 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
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
5
modules/security/default.nix
Normal file
5
modules/security/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./age.nix
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue