Skip to content

Commit c5005ec

Browse files
committed
feat(grub): add theme
1 parent a875b60 commit c5005ec

File tree

5 files changed

+77
-29
lines changed

5 files changed

+77
-29
lines changed

flake.lock

+42-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
url = "github:Mic92/sops-nix";
1919
inputs.nixpkgs.follows = "nixpkgs";
2020
};
21+
grub2-themes = {
22+
url = "github:vinceliuice/grub2-themes";
23+
inputs.nixpkgs.follows = "nixpkgs";
24+
};
2125
anime-launcher = {
2226
url = "github:ezKEa/aagl-gtk-on-nix";
2327
inputs.nixpkgs.follows = "nixpkgs";

modules/services/mopidy.nix

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ module-functions.module "services" "mopidy" (cfg: {
2222
mopidy-mpd
2323

2424
mopidy-youtube
25-
yt-dlp-light
2625
]
2726
++ lib.optional cfg.jellyfin.enable mopidy-jellyfin;
2827

modules/services/openssh.nix

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
{module-functions, pkgs, ...}:
1+
{
2+
module-functions,
3+
pkgs,
4+
...
5+
}:
26
module-functions.module "services" "openssh" {
37
services.openssh = {
48
enable = true;

modules/system/grub.nix

+26-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,28 @@
1-
{module-functions, ...}:
2-
module-functions.module "system" "grub" (cfg: {
3-
boot.loader.grub = {
4-
enable = true;
5-
efiSupport = cfg.mode == "uefi";
6-
devices = ["nodev"];
1+
{
2+
module-functions,
3+
inputs,
4+
pkgs,
5+
...
6+
}:
7+
module-functions.moduleIfEnabledFinally "system" "grub" (cfg: {
8+
boot.loader = {
9+
grub = {
10+
enable = true;
11+
efiSupport = cfg.mode == "uefi";
12+
devices = ["nodev"];
13+
};
14+
15+
grub2-theme = {
16+
enable = true;
17+
theme = "stylish";
18+
icon = "whitesur";
19+
splashImage = pkgs.fetchurl {
20+
url = "https://w.wallhaven.cc/full/1k/wallhaven-1kpqw9.jpg";
21+
hash = "sha256-C7w/kRuy5Ho+IeXkfECUYwsP+5pAkUdR9/zVEFsBrEU=";
22+
};
23+
};
724
};
825
})
26+
{
27+
imports = [inputs.grub2-themes.nixosModules.default];
28+
}

0 commit comments

Comments
 (0)