Initial commit

This commit is contained in:
2025-08-20 18:24:02 +03:00
commit 2dec42d487
116 changed files with 6591 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
{ username, pkgs, ... }: {
security = {
doas = {
enable = true;
wheelNeedsPassword = true;
};
sudo.enable = false;
# polkit.enable = lib.mkForce false;
polkit.enable = true;
};
n.misc.aliases.sudo = "doas";
security.tpm2 = {
enable = true;
pkcs11.enable = true;
pkcs11.package = pkgs.tpm2-pkcs11-fapi;
tctiEnvironment.enable = true;
};
users.users.${username}.extraGroups = [ "tss" "admin" ];
environment.systemPackages = with pkgs; [ tpm2-pkcs11-fapi clevis tpm2-tools ];
environment.variables.TPM2_PKCS11_BACKEND = "fapi";
}