nix: replace systemd-boot with grub

This commit is contained in:
Nico 2025-05-03 16:15:57 +10:00
parent a0108de7fc
commit f453b9b0e2
2 changed files with 24 additions and 2 deletions

View file

@ -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

20
nix/modules/grub.nix Normal file
View file

@ -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";
};
};
}