From 1f34404b653877e010332ae31de8ce07c541ef59 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Thu, 10 Oct 2024 10:19:43 +0530 Subject: (theme): GRUB2 --- flake.lock | 37 ++++++++++++++++++++++++++++++++++++- flake.nix | 8 +++++--- machines/x/configuration.nix | 6 ++++++ 3 files changed, 47 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 9ff5bf6..0849a9e 100644 --- a/flake.lock +++ b/flake.lock @@ -20,6 +20,24 @@ "type": "github" } }, + "grub2-themes": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1727610429, + "narHash": "sha256-zqsNFzOHPkopQzfzTr05TQRZOvXLtYnsqEqYlY3va2Q=", + "owner": "vinceliuice", + "repo": "grub2-themes", + "rev": "85db6e7ceacf659aa12b5d335dd3b18a9b9bb788", + "type": "github" + }, + "original": { + "owner": "vinceliuice", + "repo": "grub2-themes", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -56,6 +74,22 @@ } }, "nixpkgs": { + "locked": { + "lastModified": 1728534991, + "narHash": "sha256-wLUZyvtOOowAz0kTrU2MoC4nXWniFaVezGyzuEt5HPc=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "6b955bdbb9efe4a5c047746323951fe1bdf8d01b", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "master", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { "locked": { "lastModified": 1728241625, "narHash": "sha256-yumd4fBc/hi8a9QgA9IT8vlQuLZ2oqhkJXHPKxH/tRw=", @@ -74,9 +108,10 @@ "root": { "inputs": { "disko": "disko", + "grub2-themes": "grub2-themes", "home-manager": "home-manager", "impermanence": "impermanence", - "nixpkgs": "nixpkgs" + "nixpkgs": "nixpkgs_2" } } }, diff --git a/flake.nix b/flake.nix index 13d3f81..7945570 100644 --- a/flake.nix +++ b/flake.nix @@ -18,9 +18,10 @@ }; # Impermanence - impermanence = { - url = "github:nix-community/impermanence"; - }; + impermanence.url = "github:nix-community/impermanence"; + + # GRUB2 themes + grub2-themes.url = "github:vinceliuice/grub2-themes"; }; outputs = { self, nixpkgs, ... }@inputs: { @@ -37,6 +38,7 @@ inputs.home-manager.nixosModules.default inputs.impermanence.nixosModules.impermanence + inputs.grub2-themes.nixosModules.default ]; }; diff --git a/machines/x/configuration.nix b/machines/x/configuration.nix index 19305a1..c216ced 100644 --- a/machines/x/configuration.nix +++ b/machines/x/configuration.nix @@ -41,6 +41,12 @@ in { efiSupport = true; device = drive; }; + grub2-theme = { + enable = true; + theme = "vimix"; + footer = true; + customResolution = "1920x1080"; + }; }; boot.extraModprobeConfig = "options kvm_amd nested=1"; -- cgit v1.2.3