feat: improve grub config
This commit is contained in:
parent
22dff66f10
commit
5509c93d5b
1 changed files with 1 additions and 17 deletions
|
|
@ -11,22 +11,6 @@ let
|
||||||
loginShell = pkgs.writeShellScript "login-shell" ''
|
loginShell = pkgs.writeShellScript "login-shell" ''
|
||||||
exec $(getent passwd $(id -un) | cut -d: -f7) -l
|
exec $(getent passwd $(id -un) | cut -d: -f7) -l
|
||||||
'';
|
'';
|
||||||
grubTheme = pkgs.runCommand "grub-theme" { } ''
|
|
||||||
mkdir -p $out
|
|
||||||
cat > $out/theme.txt << 'EOF'
|
|
||||||
desktop-color: "#000000"
|
|
||||||
|
|
||||||
+ boot_menu {
|
|
||||||
left = 30%
|
|
||||||
top = 30%
|
|
||||||
width = 40%
|
|
||||||
height = 40%
|
|
||||||
item_color = "#999999"
|
|
||||||
selected_item_color = "#ffffff"
|
|
||||||
icon_width = 0
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
'';
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -40,7 +24,7 @@ in
|
||||||
device = "nodev";
|
device = "nodev";
|
||||||
useOSProber = true;
|
useOSProber = true;
|
||||||
configurationLimit = 2;
|
configurationLimit = 2;
|
||||||
theme = grubTheme;
|
fontSize = 32;
|
||||||
};
|
};
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue