First test of all machines

This commit is contained in:
KoenDR06 2025-02-27 22:12:26 +01:00
parent b963380a0a
commit 1d0209fac3
16 changed files with 268 additions and 73 deletions

View file

@ -1,6 +1,8 @@
{inputs, ...}: {
{inputs, headless, ...}: {
imports = [
./loader/systemd.nix
./greeter/sddm.nix
./refind.nix
( if headless then ./loader/grub.nix else ./loader/systemd.nix )
];
}

View file

@ -0,0 +1,23 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.boot.loader.grub;
in {
options = {
horseman.boot.loader.grub = {
enable = mkEnableOption "Sets grub as the bootloader";
};
};
config = {
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.configurationLimit = 10;
};
}

24
modules/boot/refind.nix Normal file
View file

@ -0,0 +1,24 @@
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.boot.refind;
in {
options = {
horseman.boot.refind = {
enable = mkEnableOption "Enables rEFInd, the boot manager";
};
};
config = {
environment.systemPackages = with pkgs; [
refind
efibootmgr
];
};
}