mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Add grub module
This commit is contained in:
parent
3e3bae4c7a
commit
6a3e7b7741
4 changed files with 14 additions and 3 deletions
|
|
@ -1,9 +1,10 @@
|
||||||
_: {
|
_: {
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
boot.loader.grub.enable = true;
|
|
||||||
|
|
||||||
myConfig = {
|
myConfig = {
|
||||||
|
boot.loader.grub.enable = true;
|
||||||
sops.enable = true;
|
sops.enable = true;
|
||||||
|
|
||||||
tailscale = {
|
tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
|
|
|
||||||
11
modules/system/boot/loader/grub.nix
Normal file
11
modules/system/boot/loader/grub.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -12,9 +12,7 @@
|
||||||
configurationLimit = 20;
|
configurationLimit = 20;
|
||||||
};
|
};
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
timeout = 0;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.watchdog.rebootTime = "10";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
config = lib.mkIf config.myConfig.boot.silent {
|
config = lib.mkIf config.myConfig.boot.silent {
|
||||||
boot = {
|
boot = {
|
||||||
|
loader.timeout = 0;
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"quiet"
|
"quiet"
|
||||||
"rd.systemd.show_status=false"
|
"rd.systemd.show_status=false"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue