Activate secure boot

This commit is contained in:
Julien Malka 2023-11-02 17:23:53 +01:00
parent 4d898e4a95
commit 968b0c90bd
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -11,7 +11,12 @@
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
boot.initrd.systemd.enable = true;
sound.enable = true;
#hardware.pulseaudio.enable = true;
@ -48,6 +53,7 @@
displayManager.gdm.enable = true;
};
services.tailscale.enable = true;
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
@ -104,6 +110,15 @@
];
services.gnome.gnome-keyring.enable = true;
services.openssh.extraConfig = ''
HostCertificate /etc/ssh/ssh_host_ed25519_key-cert.pub
HostKey /etc/ssh/ssh_host_ed25519_key
TrustedUserCAKeys /etc/ssh/ssh_user_key.pub
MaxAuthTries 20
'';
system.stateVersion = "23.05";
}