From c622a669d84c1ea85d60466ea3aba54aab810bd7 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 20 Oct 2024 16:29:43 -0700 Subject: [PATCH] feat(console): Catppuccin -> Rose Pine --- modules/nixos/console.nix | 50 ++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/modules/nixos/console.nix b/modules/nixos/console.nix index 48844ba..572f5d3 100644 --- a/modules/nixos/console.nix +++ b/modules/nixos/console.nix @@ -1,34 +1,36 @@ -{ config, lib, ... }: -let - inherit (config.catppuccin) sources; - cfg = config.console.catppuccin; - enable = cfg.enable && config.console.enable; - palette = (lib.importJSON "${sources.palette}/palette.json").${cfg.flavor}.colors; -in { - options.console.catppuccin = lib.ctp.mkCatppuccinOpt { name = "console"; }; + config, + lib, + ... +}: let + cfg = config.console.rose-pine; + enable = cfg.enable && config.console.enable; + + palette = (lib.importJSON "../../.sources/palette.json").${cfg.flavor}.colors; +in { + options.console.rose-pine = lib.rp.mkRosePineOpt {name = "console";}; config.console.colors = lib.mkIf enable ( - # Manually populate with colors from catppuccin/tty + # Manually populate with colors from rose-pine/linux-tty # Make sure to strip initial # from hex codes map (color: (builtins.substring 1 6 palette.${color}.hex)) [ "base" - "red" - "green" - "yellow" - "blue" - "pink" - "teal" - "subtext1" + "love" + "foam" + "gold" + "pine" + "iris" + "rose" + "text" - "surface2" - "red" - "green" - "yellow" - "blue" - "pink" - "teal" - "subtext0" + "overlay" + "love" + "foam" + "gold" + "pine" + "iris" + "rose" + "text" ] ); }