summaryrefslogtreecommitdiff
path: root/system/bootloader/grub.nix
blob: 167e779bb738a2ff60959e82ad0522a4be14f45c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  lib,
  config,
  ...
}: let
  inherit (lib) mkIf;
  cfg = config.bootloader.grub;
in {
  config = mkIf cfg.enable {
    boot.loader = {
      efi.canTouchEfiVariables = true;
      grub = {
        enable = true;
        efiSupport = true;
        device = "nodev";
        splashImage = config.theme.wallpaper;
      };
    };
  };
}