All this just to get nyx to even build

This commit is contained in:
blahai 2025-01-12 18:35:44 +02:00
parent ed1aafe645
commit fdfd4e0434
No known key found for this signature in database
24 changed files with 2272 additions and 0 deletions

View file

@ -0,0 +1,19 @@
{lib, ...}: let
inherit (lib.options) mkOption;
inherit (lib.types) enum;
in {
imports = [
./systemd-boot.nix
./grub.nix
];
options.olympus.system.boot.loader = mkOption {
type = enum [
"none"
"grub"
"systemd-boot"
];
default = "none";
description = "The bootloader";
};
}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,21 @@
{
lib,
pkgs,
config,
...
}: let
inherit (lib.modules) mkIf mkDefault;
inherit (lib.attrsets) optionalAttrs;
inherit (lib.options) mkEnableOption mkPackageOption;
cfg = config.olympus.system.boot;
in {
config = mkIf (cfg.loader == "systemd-boot") {
boot.loader.systemd-boot = {
enable = mkDefault true;
configurationLimit = 5;
consoleMode = "max";
editor = false;
};
};
}