From 1ed61054f7ea32c345208cff682e686349eafdc4 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sun, 12 Mar 2023 23:34:42 +0100 Subject: [PATCH] Some grub theming --- common/themes/ai.nix | 4 ++-- .../{colorful.png => colorful1.png} | Bin flake.lock | 21 ++++++++++++++++++ flake.nix | 6 ++--- hosts/nixos/tethys/boot.nix | 15 ++++++++----- 5 files changed, 35 insertions(+), 11 deletions(-) rename common/themes/wallpapers/{colorful.png => colorful1.png} (100%) diff --git a/common/themes/ai.nix b/common/themes/ai.nix index 07884b5..bcc5051 100644 --- a/common/themes/ai.nix +++ b/common/themes/ai.nix @@ -1,8 +1,8 @@ { stylix = { # image = ./wallpapers/eye.png; - # image = ./wallpapers/colorful1.png; - image = ./wallpapers/colorful2.png; + image = ./wallpapers/colorful1.png; + # image = ./wallpapers/colorful2.png; # image = ./wallpapers/colorful3.jpg; polarity = "light"; diff --git a/common/themes/wallpapers/colorful.png b/common/themes/wallpapers/colorful1.png similarity index 100% rename from common/themes/wallpapers/colorful.png rename to common/themes/wallpapers/colorful1.png diff --git a/flake.lock b/flake.lock index 391b558..e12ecb1 100644 --- a/flake.lock +++ b/flake.lock @@ -164,6 +164,26 @@ "type": "github" } }, + "grub2-themes": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1674015718, + "narHash": "sha256-cBgjWD/mR1tiPyVky9Bl5kUrDX6RnARJ+0cEJ4VhbRg=", + "owner": "vinceliuice", + "repo": "grub2-themes", + "rev": "7c0d8eb7849cd5a4cf6a26c8750dcf71c26f2b0f", + "type": "github" + }, + "original": { + "owner": "vinceliuice", + "repo": "grub2-themes", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -340,6 +360,7 @@ "agenix": "agenix", "catppuccin-base16": "catppuccin-base16", "firefox-addons": "firefox-addons", + "grub2-themes": "grub2-themes", "home-manager": "home-manager", "homeage": "homeage", "impermanence": "impermanence", diff --git a/flake.nix b/flake.nix index 7c6c42a..7846792 100644 --- a/flake.nix +++ b/flake.nix @@ -24,9 +24,9 @@ homeage.url = "github:jordanisaacs/homeage"; homeage.inputs.nixpkgs.follows = "nixpkgs"; - # Base16-nix - # base16.url = github:SenchoPens/base16.nix; - # base16.inputs.nixpkgs.follows = "nixpkgs"; + # Grub2 themes + grub2-themes.url = "github:vinceliuice/grub2-themes"; + grub2-themes.inputs.nixpkgs.follows = "nixpkgs"; # Stylix stylix.url = "github:danth/stylix"; diff --git a/hosts/nixos/tethys/boot.nix b/hosts/nixos/tethys/boot.nix index 1c09f3b..71b1077 100644 --- a/hosts/nixos/tethys/boot.nix +++ b/hosts/nixos/tethys/boot.nix @@ -1,6 +1,12 @@ -# This file contains arcane configurations copied from a random old wiki entry -# One day I shall revisit this and see what's needed and what isn't -{ +{ inputs, ... }: { + imports = [ inputs.grub2-themes.nixosModules.default ]; + + # Defined [here](https://github.com/vinceliuice/grub2-themes/blob/master/flake.nix#L11) + boot.loader.grub2-theme = { + enable = true; + }; + + # See [the wiki page](https://nixos.wiki/wiki/Dual_Booting_NixOS_and_Windows) boot.loader = { efi = { canTouchEfiVariables = true; @@ -27,10 +33,7 @@ chainloader /EFI/Microsoft/Boot/bootmgfw.efi } ''; - version = 2; }; }; - -stylix.targets.grub.enable = true; }