chore(nixos): use mkCatppuccinOpt in grub
This commit is contained in:
parent
20a4a5d3f2
commit
a89537a873
1 changed files with 2 additions and 8 deletions
|
@ -15,14 +15,8 @@ let
|
||||||
cp -r ${src}/src/catppuccin-${cfg.flavour}-grub-theme/* "$out"/
|
cp -r ${src}/src/catppuccin-${cfg.flavour}-grub-theme/* "$out"/
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
options.boot.loader.grub.catppuccin = with lib; {
|
options.boot.loader.grub.catppuccin =
|
||||||
enable = mkEnableOption "Catppuccin theme";
|
lib.ctp.mkCatppuccinOpt "grub" config;
|
||||||
flavour = mkOption {
|
|
||||||
type = types.enum [ "latte" "frappe" "macchiato" "mocha" ];
|
|
||||||
default = config.catppuccin.flavour;
|
|
||||||
description = "Catppuccin flavour for grub";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config.boot.loader.grub = with lib; mkIf cfg.enable {
|
config.boot.loader.grub = with lib; mkIf cfg.enable {
|
||||||
font = "${theme}/font.pf2";
|
font = "${theme}/font.pf2";
|
||||||
|
|
Loading…
Reference in a new issue