Commit aafcbad

HPCesia <me@hpcesia.com>
2025-08-27 08:10:17
feat: add grub theme
1 parent 5ed496c
Changed files (3)
hosts/chaser-kevin/boot.nix
@@ -1,12 +1,17 @@
-{pkgs, ...}: {
+{
+  pkgs,
+  distro-grub-themes,
+  ...
+}: {
   boot.loader = {
-    grub = {
+    grub = rec {
       enable = true;
       devices = ["nodev"];
       efiSupport = true;
-      gfxmodeEfi = "1200x800";
+      gfxmodeEfi = "1024x768";
       useOSProber = true;
-      theme = "${pkgs.kdePackages.breeze-grub}/grub/themes/breeze";
+      theme = distro-grub-themes.packages.${pkgs.system}.lenovo-grub-theme;
+      splashImage = "${theme}/splash_image.jpg";
     };
     efi = {
       canTouchEfiVariables = true;
flake.lock
@@ -63,6 +63,25 @@
         "type": "github"
       }
     },
+    "distro-grub-themes": {
+      "inputs": {
+        "flake-utils": "flake-utils_2",
+        "nixpkgs": "nixpkgs_2"
+      },
+      "locked": {
+        "lastModified": 1734806114,
+        "narHash": "sha256-FWkDtoLMTTk2Lz4d4LkFjtV/xYyIlpwZlX5Np1QhXls=",
+        "owner": "AdisonCavani",
+        "repo": "distro-grub-themes",
+        "rev": "ebbd17419890059e371a6f2dbf2a7e76190327d4",
+        "type": "github"
+      },
+      "original": {
+        "owner": "AdisonCavani",
+        "repo": "distro-grub-themes",
+        "type": "github"
+      }
+    },
     "flake-compat": {
       "flake": false,
       "locked": {
@@ -115,6 +134,24 @@
         "type": "github"
       }
     },
+    "flake-utils_2": {
+      "inputs": {
+        "systems": "systems"
+      },
+      "locked": {
+        "lastModified": 1731533236,
+        "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
+        "owner": "numtide",
+        "repo": "flake-utils",
+        "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
+        "type": "github"
+      },
+      "original": {
+        "owner": "numtide",
+        "repo": "flake-utils",
+        "type": "github"
+      }
+    },
     "haumea": {
       "inputs": {
         "nixpkgs": [
@@ -281,6 +318,22 @@
       }
     },
     "nixpkgs_2": {
+      "locked": {
+        "lastModified": 1731676054,
+        "narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=",
+        "owner": "nixos",
+        "repo": "nixpkgs",
+        "rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add",
+        "type": "github"
+      },
+      "original": {
+        "owner": "nixos",
+        "ref": "nixos-unstable",
+        "repo": "nixpkgs",
+        "type": "github"
+      }
+    },
+    "nixpkgs_3": {
       "locked": {
         "lastModified": 1755615617,
         "narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=",
@@ -386,12 +439,13 @@
         "catppuccin": "catppuccin",
         "colmena": "colmena",
         "disko": "disko",
+        "distro-grub-themes": "distro-grub-themes",
         "haumea": "haumea",
         "helix-steel": "helix-steel",
         "home-manager": "home-manager",
         "nixos-hardware": "nixos-hardware",
         "nixos-logo": "nixos-logo",
-        "nixpkgs": "nixpkgs_2",
+        "nixpkgs": "nixpkgs_3",
         "nixpkgs-stable": "nixpkgs-stable",
         "nixpkgs-unstable": "nixpkgs-unstable",
         "nur": "nur",
@@ -459,6 +513,21 @@
         "type": "github"
       }
     },
+    "systems": {
+      "locked": {
+        "lastModified": 1681028828,
+        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+        "owner": "nix-systems",
+        "repo": "default",
+        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+        "type": "github"
+      },
+      "original": {
+        "owner": "nix-systems",
+        "repo": "default",
+        "type": "github"
+      }
+    },
     "utils": {
       "locked": {
         "lastModified": 1678901627,
flake.nix
@@ -59,6 +59,8 @@
       inputs.nixpkgs.follows = "nixpkgs";
     };
 
+    distro-grub-themes.url = "github:AdisonCavani/distro-grub-themes";
+
     # === Follows are myself repos === #
     nur-hpcesia = {
       url = "github:HPCesia/nur-packages";