nixos-config/modules/system/boot/default.nix
2024-07-13 23:31:55 +09:00

31 lines
807 B
Nix

{ pkgs, ... }:
{
# Bootloader.
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
grub = {
efiSupport = true;
device = "nodev";
useOSProber = true;
theme = pkgs.stdenv.mkDerivation {
name = "tartarus-grub";
src = pkgs.fetchFromGitHub {
owner = "AllJavi";
repo = "tartarus-grub";
rev = "b116360a2a0991062a4d728cb005dfd309fbb82a";
hash = "sha256-/Pzr0R3zzOXUi2pAl8Lvg6aHTiwXTIrxQ1vscbEK/kU=";
};
installPhase = ''
cp tartarus -r $out
'';
};
};
};
}