rose-pine-nix/modules/nixos/grub.nix

17 lines
334 B
Nix
Raw Normal View History

2024-05-21 14:53:46 -07:00
{
config,
lib,
...
2024-10-20 16:42:57 -07:00
}: let
inherit (config.rose-pine) sources;
2023-04-16 13:11:09 -07:00
2024-10-20 16:42:57 -07:00
cfg = config.boot.loader.grub.rose-pine;
enable = cfg.enable && config.boot.loader.grub.enable;
in {
options.boot.loader.grub.rose-pine = lib.rp.mkRosePineOpt {name = "grub";};
2023-04-16 13:11:09 -07:00
config.boot.loader.grub = lib.mkIf enable {
2024-10-20 16:42:57 -07:00
theme = sources.grub;
2023-04-16 13:11:09 -07:00
};
}