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