Add theia stuffies

This commit is contained in:
blahai 2025-01-12 22:44:11 +02:00
parent 452e600c5f
commit ad09e551fd
No known key found for this signature in database
11 changed files with 135 additions and 2 deletions

View file

@ -1 +1,31 @@
{}
{
lib,
config,
...
}: let
inherit (lib.modules) mkIf mkDefault;
inherit (lib.options) mkOption;
inherit (lib.types) nullOr str;
cfg = config.olympus.system.boot;
in {
options.olympus.system.boot.grub = {
device = mkOption {
type = nullOr str;
default = "nodev";
description = "The device to install the bootloader to.";
};
};
config = mkIf (cfg.loader == "grub") {
boot.loader.grub = {
enable = mkDefault true;
useOSProber = false;
efiSupport = false;
enableCryptodisk = mkDefault false;
inherit (cfg.grub) device;
theme = null;
backgroundColor = null;
splashImage = null;
};
};
}