Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeslie0/nixos-grub-themes
A Nix flake providing some Grub bootloader themes
https://github.com/jeslie0/nixos-grub-themes
flakes grub grub2 grub2-theme nix nixos themes
Last synced: 3 months ago
JSON representation
A Nix flake providing some Grub bootloader themes
- Host: GitHub
- URL: https://github.com/jeslie0/nixos-grub-themes
- Owner: jeslie0
- License: mit
- Created: 2023-12-10T23:45:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-10T21:08:29.000Z (5 months ago)
- Last Synced: 2024-09-11T00:29:20.067Z (5 months ago)
- Topics: flakes, grub, grub2, grub2-theme, nix, nixos, themes
- Language: Nix
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.org
- License: LICENSE
Awesome Lists containing this project
README
#+title: NixOS Grub Themes
This is a flake of Grub themes to use with NixOS. Each of the directories in [[file:themes/][themes]] gives a theme which is usable.
It is simple to add themes to this flake! Just add a directory to themes and put a =default.nix= file in there. Feel free to submit a pull request to add themes.
To use one, set the =boot.loader.grub.theme= option in your NixOS configuration to the desired derivation generated by this flake.
** Installation with NixOS:
First you will have to add this repo to your =flake.nix= file as a new input.
#+begin_src nix
# flake.nix
{
description = "NixOS configuration";inputs = {
...
# Add nixos-grub-themes to your inputs ...
nixos-grub-themes.url = "github:jeslie0/nixos-grub-themes";
};outputs = inputs@{ nixpkgs, ... }: {
nixosConfigurations = {
my_host = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; }; # pass the inputs into the configuration module
modules = [
./configuration.nix
];
};
};
};
}
#+end_srcAfter that, you can configure the theme as shown below. In this example it is inside the =configuration.nix= file but it can be any file you choose.
#+begin_src nix
# configuration.nix
{ inputs, config, pkgs, lib, ... }:
{
boot.loader.grub = {
... # your existing config
theme = inputs.nixos-grub-themes.packages.${pkgs.system}.nixos;
};
}
#+end_src