system: Grub

This commit is contained in:
Sweetbread 2024-11-29 13:31:41 +03:00
parent 6695c512ea
commit d125b3407c
5 changed files with 45 additions and 9 deletions

View File

@ -2,6 +2,7 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./secrets/secrets.nix ./secrets/secrets.nix
./modules/grub.nix
../../packages.nix ../../packages.nix
../../modules/bundle.nix ../../modules/bundle.nix
../../modules/gamemode.nix ../../modules/gamemode.nix

View File

@ -0,0 +1,13 @@
{ pkgs, ... }: let
theme = pkgs.fetchFromGitHub {
owner = "OliveThePuffin";
repo = "yorha-grub-theme";
rev = "4d9cd37baf56c4f5510cc4ff61be278f11077c81";
hash = "sha256-XVzYDwJM7Q9DvdF4ZOqayjiYpasUeMhAWWcXtnhJ0WQ=";
};
in {
boot.loader.grub = {
gfxmodeEfi = "1920x1080";
theme = "${theme}/yorha-1920x1080";
};
}

View File

@ -2,6 +2,7 @@
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./secrets/secrets.nix ./secrets/secrets.nix
./modules/grub.nix
../../packages.nix ../../packages.nix
../../modules/bundle.nix ../../modules/bundle.nix
../../modules/adb.nix ../../modules/adb.nix

View File

@ -0,0 +1,13 @@
{ pkgs, ... }: let
theme = pkgs.fetchFromGitHub {
owner = "OliveThePuffin";
repo = "yorha-grub-theme";
rev = "4d9cd37baf56c4f5510cc4ff61be278f11077c81";
hash = "sha256-XVzYDwJM7Q9DvdF4ZOqayjiYpasUeMhAWWcXtnhJ0WQ=";
};
in {
boot.loader.grub = {
gfxmodeEfi = "3440x1440";
theme = "${theme}/yorha-2560x1440";
};
}

View File

@ -2,21 +2,29 @@
boot = { boot = {
loader = { loader = {
timeout = 3; timeout = 3;
systemd-boot.enable = true; # systemd-boot.enable = true;
efi.canTouchEfiVariables = true; efi.efiSysMountPoint = "/boot";
};
initrd = { grub = {
verbose = false; enable = true;
# systemd.enable = true; efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
};
# efi.canTouchEfiVariables = true;
}; };
# initrd = {
# verbose = false;
# # systemd.enable = true;
# };
consoleLogLevel = 0; consoleLogLevel = 0;
kernelParams = [ kernelParams = [
"quiet" # "quiet"
"splash" "splash"
"boot.shell_on_fail" "boot.shell_on_fail"
"loglevel=3" "loglevel=3"
"rd.systemd.show_status=false" # "rd.systemd.show_status=false"
"rd.udev.log_level=3" # "rd.udev.log_level=3"
"udev.log_priority=0" "udev.log_priority=0"
]; ];
plymouth = { plymouth = {