From c90f4c5219aa298eda0b67573557e064fe1e203b Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sat, 27 Jul 2024 13:55:37 +0200 Subject: [PATCH] sombrero: Add `boot` module --- hosts/sombrero/configuration.nix | 24 ------------------------ hosts/sombrero/modules/boot/default.nix | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 24 deletions(-) create mode 100644 hosts/sombrero/modules/boot/default.nix diff --git a/hosts/sombrero/configuration.nix b/hosts/sombrero/configuration.nix index 4c7cb65..c8fab2d 100644 --- a/hosts/sombrero/configuration.nix +++ b/hosts/sombrero/configuration.nix @@ -14,30 +14,6 @@ environment.variables.EDITOR = "vim"; - boot = { - loader = { - grub.enable = false; - efi.canTouchEfiVariables = true; - - raspberryPi = { - enable = true; - version = 4; - }; - }; - - tmp = { - useTmpfs = true; - }; - - kernelPackages = pkgs.linuxPackages_rpi4; - kernelParams = [ - "8250.nr_uarts=1" - "console=ttyAMA0,115200" - "console=tty1" - "cma=128M" - ]; - }; - hardware.enableRedistributableFirmware = true; # Set your time zone. diff --git a/hosts/sombrero/modules/boot/default.nix b/hosts/sombrero/modules/boot/default.nix new file mode 100644 index 0000000..0122e75 --- /dev/null +++ b/hosts/sombrero/modules/boot/default.nix @@ -0,0 +1,25 @@ +{ pkgs, ... }: { + boot = { + loader = { + grub.enable = false; + efi.canTouchEfiVariables = true; + + raspberryPi = { + enable = true; + version = 4; + }; + }; + + tmp = { + useTmpfs = true; + }; + + kernelPackages = pkgs.linuxPackages_rpi4; + kernelParams = [ + "8250.nr_uarts=1" + "console=ttyAMA0,115200" + "console=tty1" + "cma=128M" + ]; + }; +}