🚧 Work on fixing booting issues and various other things

This commit is contained in:
Jo 2025-04-25 16:49:34 +02:00
parent dc87b2c186
commit cd32ad1c61
9 changed files with 95 additions and 52 deletions

View file

@ -0,0 +1,34 @@
{
lib,
self,
config,
...
}:
let
inherit (lib) mkEnableOption mkIf;
inherit (self) namespace;
cfg = config.${namespace}.common.grub;
in {
options.${namespace}.common.grub = { enable = mkEnableOption "grub"; };
config = mkIf cfg.enable {
boot.loader.systemd-boot.enable = false;
boot.loader.grub = {
enable = true;
devices = [ "nodev" ];
efiInstallAsRemovable = true;
efiSupport = true;
extraEntries = ''
menuentry "Reboot" {
reboot
}
menuentry "Poweroff" {
halt
}
'';
};
};
}