mirror of
https://github.com/blahai/nyx.git
synced 2025-06-09 21:33:03 -04:00
All this just to get nyx to even build
This commit is contained in:
parent
ed1aafe645
commit
fdfd4e0434
24 changed files with 2272 additions and 0 deletions
19
modules/nixos/boot/loader/default.nix
Normal file
19
modules/nixos/boot/loader/default.nix
Normal 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";
|
||||
};
|
||||
}
|
1
modules/nixos/boot/loader/grub.nix
Normal file
1
modules/nixos/boot/loader/grub.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
21
modules/nixos/boot/loader/systemd-boot.nix
Normal file
21
modules/nixos/boot/loader/systemd-boot.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue