diff --git a/hosts/homeassistant/boot.nix b/hosts/homeassistant/boot.nix new file mode 100644 index 0000000..f3d022c --- /dev/null +++ b/hosts/homeassistant/boot.nix @@ -0,0 +1,39 @@ +{ lib, pkgs, ... }: +let + kernel = pkgs.linuxPackages_latest; +in +{ + # Configure bootloader with lanzaboot and secureboot + boot = { + kernelModules = [ "nct6775" ]; + loader = { + efi = { + canTouchEfiVariables = true; + efiSysMountPoint = "/boot"; + }; + }; + + initrd = { + verbose = false; + systemd.enable = true; + }; + + plymouth = { + enable = true; + }; + + kernelPackages = kernel; + + kernelParams = [ + "quiet" + "splash" + ]; + + consoleLogLevel = 3; + bootspec.enable = true; + }; + + environment.systemPackages = with pkgs; [ + edk2-uefi-shell + ]; +} diff --git a/hosts/homeassistant/configuration.nix b/hosts/homeassistant/configuration.nix index 438b791..371d88f 100644 --- a/hosts/homeassistant/configuration.nix +++ b/hosts/homeassistant/configuration.nix @@ -19,8 +19,6 @@ in ./boot.nix ./hardware-configuration.nix ./impermanence.nix - # ./sops.nix - # ./ups-monitor.nix ../default.nix ];