Disable Grub for all headless devices

This commit is contained in:
Invariantspace 2024-06-15 21:00:23 -07:00
parent fcbe6a3a66
commit ad18b53b01
No known key found for this signature in database
GPG key ID: EBC4A20067373921
4 changed files with 4 additions and 24 deletions

View file

@ -17,7 +17,6 @@
splashImage = "${yorha}/background.png"; splashImage = "${yorha}/background.png";
theme = yorha; theme = yorha;
}; };
timeout = 3;
}; };
plymouth = { plymouth = {
enable = true; enable = true;

View file

@ -2,21 +2,13 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ pkgs, ... }: { ... }:
{ {
# Configure boot loader # Configure boot loader
boot.loader = { boot.loader = {
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
grub = let yorha = pkgs.yorha-grub-theme; in { systemd-boot.enable = true;
enable = true;
device = "nodev";
efiSupport = true;
splashImage = "${yorha}/background.png";
theme = yorha;
};
timeout = 3;
}; };
# Change secrets file # Change secrets file
@ -38,5 +30,4 @@
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment? system.stateVersion = "24.05"; # Did you read the comment?
} }

View file

@ -2,21 +2,13 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running `nixos-help`). # and in the NixOS manual (accessible by running `nixos-help`).
{ pkgs, ... }: { ... }:
{ {
# Configure boot loader # Configure boot loader
boot.loader = { boot.loader = {
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
grub = let yorha = pkgs.yorha-grub-theme; in { systemd-boot.enable = true;
enable = true;
device = "nodev";
efiSupport = true;
splashImage = "${yorha}/background.png";
theme = yorha;
};
timeout = 3;
}; };
# Set your time zone. # Set your time zone.
@ -29,6 +21,5 @@
# Before changing this value read the documentation for this option # Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment? system.stateVersion = "24.05"; # Did you read the comment?
} }

View file

@ -9,7 +9,6 @@
boot.loader = { boot.loader = {
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
systemd-boot.enable = true; systemd-boot.enable = true;
timeout = 0;
}; };
# Change secrets file # Change secrets file