cleanup nas I think or something

This commit is contained in:
mjallen18
2025-08-27 12:03:53 -05:00
parent 83f8b3543c
commit 6c6d6325c9
23 changed files with 357 additions and 512 deletions

View File

@@ -0,0 +1,33 @@
{ config, lib, namespace, ... }:
with lib;
let
# inherit (lib.${namespace}) mkOpt;
cfg = config.${namespace}.security.tpm;
in
{
options.${namespace}.security.tpm = {
enable = mkEnableOption "enable tpm";
};
config = mkIf cfg.enable {
security.tpm2 = {
enable = lib.mkDefault true;
};
boot = {
initrd = {
kernelModules = [
"tpm"
"tpm_tis"
"tpm_crb"
"tpm_infineon"
];
systemd = {
enable = lib.mkDefault true;
tpm2.enable = lib.mkDefault true;
};
};
};
};
}