Add grub module

This commit is contained in:
SebastianStork 2025-05-12 19:09:50 +02:00
parent 3e3bae4c7a
commit 6a3e7b7741
4 changed files with 14 additions and 3 deletions

View file

@ -1,9 +1,10 @@
_: {
system.stateVersion = "24.11";
boot.loader.grub.enable = true;
myConfig = {
boot.loader.grub.enable = true;
sops.enable = true;
tailscale = {
enable = true;
ssh.enable = true;

View file

@ -0,0 +1,11 @@
{ config, lib, ... }:
{
options.myConfig.boot.loader.grub.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.boot.loader.grub.enable {
boot = {
tmp.cleanOnBoot = true;
loader.grub.enable = true;
};
};
}

View file

@ -12,9 +12,7 @@
configurationLimit = 20;
};
efi.canTouchEfiVariables = true;
timeout = 0;
};
};
systemd.watchdog.rebootTime = "10";
};
}

View file

@ -4,6 +4,7 @@
config = lib.mkIf config.myConfig.boot.silent {
boot = {
loader.timeout = 0;
kernelParams = [
"quiet"
"rd.systemd.show_status=false"