Add vm and boot option

This commit is contained in:
muon 2024-08-23 10:53:58 +00:00
parent b7d42c340b
commit 5660351d84
4 changed files with 32 additions and 10 deletions

View file

@ -1,12 +1,21 @@
{ pkgs, lib, config, ... }: {
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;
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;
};
};
};
}