feat: NixOS | add secure boot and nixos-hardware flake

This commit is contained in:
2025-02-02 16:11:14 +05:00
parent 296fb3cd99
commit ac6ac36aa4
3 changed files with 235 additions and 4 deletions

View File

@@ -2,12 +2,22 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ inputs, pkgs, hostname, ... }:
{ lib, inputs, pkgs, hostname, ... }:
{
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot = {
loader = {
# Set this to true on first install. This must be false for secure boot.
systemd-boot.enable = lib.mkForce false;
efi.canTouchEfiVariables = true;
};
lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
};
# Bluetooth.
hardware.bluetooth.enable = true;
@@ -79,6 +89,9 @@
# Enable smart card services
services.pcscd.enable = true;
# Framework firmware updating
services.fwupd.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
@@ -148,6 +161,7 @@
spice-protocol
win-virtio
win-spice
sbctl # Secure boot
];
programs._1password.enable = true;