From 4dbff06d3cefb31279947c0e7ec2c1e4343fd245 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sun, 8 Jan 2023 12:32:40 +0100 Subject: [PATCH] sombrero: cleanup boot --- hosts/sombrero/configuration.nix | 42 +++++++++++++++++--------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/hosts/sombrero/configuration.nix b/hosts/sombrero/configuration.nix index 68fc0f6..440efd9 100644 --- a/hosts/sombrero/configuration.nix +++ b/hosts/sombrero/configuration.nix @@ -12,8 +12,28 @@ ./hardware-configuration.nix ]; - boot.loader.grub.enable = false; - boot.loader.efi.canTouchEfiVariables = true; + boot = { + loader = { + grub.enable = false; + efi.canTouchEfiVariables = true; + + raspberryPi = { + enable = true; + version = 4; + }; + }; + + tmpOnTmpfs = true; + kernelPackages = pkgs.linuxPackages_rpi4; + kernelParams = [ + "8250.nr_uarts=1" + "console=ttyAMA0,115200" + "console=tty1" + "cma=128M" + ]; + }; + + hardware.enableRedistributableFirmware = true; # Set your time zone. time.timeZone = "Europe/Stockholm"; @@ -26,24 +46,6 @@ # useXkbConfig = true; # use xkbOptions in tty. # }; - boot.loader.raspberryPi = { - enable = true; - version = 4; - }; - - boot = { - kernelPackages = pkgs.linuxPackages_rpi4; - tmpOnTmpfs = true; - kernelParams = [ - "8250.nr_uarts=1" - "console=ttyAMA0,115200" - "console=tty1" - "cma=128M" - ]; - }; - - hardware.enableRedistributableFirmware = true; - networking = { hostName = "sombrero";