common: enable tpm by default

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-02 08:24:39 +01:00
parent 967ebc0bba
commit 387ff505b5
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -187,6 +187,8 @@ in {
security.rtkit.enable = !config.machineVars.headless;
security.tpm2.enable = lib.mkDefault true;
security.tpm2.abrmd.enable = lib.mkDefault config.security.tpm2.enable;
security.sudo.extraConfig = let
sudoLecture = pkgs.writeText "sudo-lecture.txt" (extendedLib.termColors.front.red "Be careful or something, idk...\n");
in ''