diff --git a/.sources/sources.json b/.sources/sources.json index dafff99..e663243 100644 --- a/.sources/sources.json +++ b/.sources/sources.json @@ -252,6 +252,18 @@ "url": "https://github.com/catppuccin/rio/archive/6d93b3385a0f2ae586edc30aa64601d40ea382d5.tar.gz", "hash": "171pb62q1rzpr802yb93sj30vq3b3kiqlac8nva08rgjb94z5ipi" }, + "rio-terminal": { + "type": "Git", + "repository": { + "type": "GitHub", + "owner": "rose-pine", + "repo": "rio-terminal" + }, + "branch": "main", + "revision": "6c0422dc266bc4c85849c2cae9727a3f105c9285", + "url": "https://github.com/rose-pine/rio-terminal/archive/6c0422dc266bc4c85849c2cae9727a3f105c9285.tar.gz", + "hash": "0970n6gba1cwa5wcvmxvfb7bx3pdw2rqysxzcxqyzsvj7ykxgmsr" + }, "rofi": { "type": "Git", "repository": { diff --git a/modules/home-manager/rio.nix b/modules/home-manager/rio.nix index dd01829..fdf54db 100644 --- a/modules/home-manager/rio.nix +++ b/modules/home-manager/rio.nix @@ -1,15 +1,21 @@ -{ config, lib, ... }: -let - inherit (lib) ctp; - inherit (config.catppuccin) sources; - - cfg = config.programs.rio.catppuccin; - enable = cfg.enable && config.programs.rio.enable; -in { - options.programs.rio.catppuccin = ctp.mkCatppuccinOpt { name = "rio"; }; + config, + lib, + ... +}: let + inherit (config.rose-pine) sources; + + cfg = config.programs.rio.rose-pine; + enable = cfg.enable && config.programs.rio.enable; + + themeName = + if (cfg.flavor == "main") + then "rose-pine" + else "rose-pine-${cfg.flavor}"; +in { + options.programs.rio.rose-pine = lib.rp.mkRosePineOpt {name = "rio";}; config = lib.mkIf enable { - programs.rio.settings = lib.importTOML "${sources.rio}/themes/catppuccin-${cfg.flavor}.toml"; + programs.rio.settings = lib.importTOML "${sources.rio}/${themeName}.toml"; }; }