forked from nico/dots
nix: replace systemd-boot with grub
This commit is contained in:
parent
a0108de7fc
commit
f453b9b0e2
2 changed files with 24 additions and 2 deletions
|
|
@ -9,8 +9,10 @@
|
||||||
# Nix Configuration
|
# Nix Configuration
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the grub EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
|
boot.loader.grub.device = "nodev";
|
||||||
|
boot.loader.grub.efiSupport = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
|
|
|
||||||
20
nix/modules/grub.nix
Normal file
20
nix/modules/grub.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue