From f453b9b0e2d4dd5b82002f05ccdeaae1835a0b43 Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 3 May 2025 16:15:57 +1000 Subject: [PATCH] nix: replace systemd-boot with grub --- nix/configuration.nix | 6 ++++-- nix/modules/grub.nix | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 nix/modules/grub.nix diff --git a/nix/configuration.nix b/nix/configuration.nix index ce3f160..084b035 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -9,8 +9,10 @@ # Nix Configuration nixpkgs.config.allowUnfree = true; - # Use the systemd-boot EFI boot loader. - boot.loader.systemd-boot.enable = true; + # Use the grub EFI boot loader. + boot.loader.grub.enable = true; + boot.loader.grub.device = "nodev"; + boot.loader.grub.efiSupport = true; boot.loader.efi.canTouchEfiVariables = true; # Networking diff --git a/nix/modules/grub.nix b/nix/modules/grub.nix new file mode 100644 index 0000000..0b3e198 --- /dev/null +++ b/nix/modules/grub.nix @@ -0,0 +1,20 @@ +{ config, lib, pkgs, ... }: + +# theming of grub + +{ + boot.loader.grub = { + theme = pkgs.stdenv.mkDerivation { + pname = "hyperfluent"; + version = "v1.0.1"; + src = fetchFromGitHub { + owner = "Coopydood"; + repo = "HyperFluent-GRUB-Theme"; + rev = "62e525ea2aa250e3f37669d68eb355b6cc997d64"; + hash = "sha256-Als4Tp6VwzwHjUyC62mYyiej1pZL9Tzj4uhTRoL+U9Q="; + }; + installPhase = "cp -r nixos $out"; + }; + }; + +}