mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 16:17:46 +00:00
21 lines
493 B
Nix
21 lines
493 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 = 0;
|
|
efi.canTouchEfiVariables = true;
|
|
grub = {
|
|
enable = true;
|
|
efiSupport = true;
|
|
device = "nodev";
|
|
gfxmodeEfi = config.mods.monitors.primary.config.mode;
|
|
};
|
|
};
|
|
};
|
|
}
|