From a89537a8731b4691cabd314468aed3dbcd7ea55f Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 17 Apr 2023 21:50:53 -0400 Subject: [PATCH] chore(nixos): use mkCatppuccinOpt in grub --- modules/nixos/grub.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/nixos/grub.nix b/modules/nixos/grub.nix index 4cddf90..30ce971 100644 --- a/modules/nixos/grub.nix +++ b/modules/nixos/grub.nix @@ -15,14 +15,8 @@ let cp -r ${src}/src/catppuccin-${cfg.flavour}-grub-theme/* "$out"/ ''; in { - options.boot.loader.grub.catppuccin = with lib; { - enable = mkEnableOption "Catppuccin theme"; - flavour = mkOption { - type = types.enum [ "latte" "frappe" "macchiato" "mocha" ]; - default = config.catppuccin.flavour; - description = "Catppuccin flavour for grub"; - }; - }; + options.boot.loader.grub.catppuccin = + lib.ctp.mkCatppuccinOpt "grub" config; config.boot.loader.grub = with lib; mkIf cfg.enable { font = "${theme}/font.pf2";