mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
22 lines
520 B
Nix
22 lines
520 B
Nix
{ pkgs, lib, config, ... }: {
|
|
options.mods = {
|
|
boot.enable = lib.mkEnableOption {
|
|
description = "enables grub";
|
|
default = true;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.mods.boot.enable {
|
|
boot.loader = lib.mkIf config.mods.xorg.enable {
|
|
timeout = 1;
|
|
efi.canTouchEfiVariables = true;
|
|
grub = {
|
|
enable = true;
|
|
zfsSupport = true;
|
|
efiSupport = true;
|
|
device = "nodev";
|
|
gfxmodeEfi = config.mods.monitors.primary.config.mode;
|
|
};
|
|
};
|
|
};
|
|
}
|