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" ] ); }