hass
This commit is contained in:
39
hosts/homeassistant/boot.nix
Normal file
39
hosts/homeassistant/boot.nix
Normal file
@@ -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
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -19,8 +19,6 @@ in
|
|||||||
./boot.nix
|
./boot.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./impermanence.nix
|
./impermanence.nix
|
||||||
# ./sops.nix
|
|
||||||
# ./ups-monitor.nix
|
|
||||||
../default.nix
|
../default.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user