Skip to content

Commit

Permalink
feat(home-manager): init rio module
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelBelsanti committed Apr 10, 2024
1 parent 4043beb commit c7c47fd
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
20 changes: 20 additions & 0 deletions _sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,26 @@
},
"version": "989420b24e1f651b176c9d6083ad7c3b90a27f8b"
},
"rio": {
"cargoLocks": null,
"date": "2023-12-05",
"extract": null,
"name": "rio",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "catppuccin",
"repo": "rio",
"rev": "a8d3d3c61f828da5f3d6d02d7d489108f6428178",
"sha256": "sha256-bT789sEDJl3wQh/yfbmjD/J7XNr2ejOd0UsASguyCQo=",
"type": "github"
},
"version": "a8d3d3c61f828da5f3d6d02d7d489108f6428178"
},
"starship": {
"cargoLocks": null,
"date": "2023-07-13",
Expand Down
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,18 @@
};
date = "2024-02-03";
};
rio = {
pname = "rio";
version = "a8d3d3c61f828da5f3d6d02d7d489108f6428178";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "rio";
rev = "a8d3d3c61f828da5f3d6d02d7d489108f6428178";
fetchSubmodules = false;
sha256 = "sha256-bT789sEDJl3wQh/yfbmjD/J7XNr2ejOd0UsASguyCQo=";
};
date = "2023-12-05";
};
starship = {
pname = "starship";
version = "5629d2356f62a9f2f8efad3ff37476c19969bd4f";
Expand Down
18 changes: 18 additions & 0 deletions modules/home-manager/rio.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ config
, lib
, sources
, ...
}:
let
inherit (lib) ctp;
cfg = config.programs.rio.catppuccin;
enable = cfg.enable && config.programs.rio.enable;
in
{
options.programs.rio.catppuccin =
ctp.mkCatppuccinOpt "rio";

config = lib.mkIf enable {
programs.rio.settings = lib.importTOML "${sources.rio}/catppuccin-${cfg.flavour}.toml";
};
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ fetch.github = "catppuccin/palette"
src.git = "https://github.com/catppuccin/polybar.git"
fetch.github = "catppuccin/polybar"

[rio]
src.git = "https://github.com/catppuccin/rio.git"
fetch.github = "catppuccin/rio"

[starship]
src.git = "https://github.com/catppuccin/starship.git"
fetch.github = "catppuccin/starship"
Expand Down
1 change: 1 addition & 0 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ in
lazygit = ctpEnable;
micro = ctpEnable;
neovim = ctpEnable;
rio = ctpEnable;
starship = ctpEnable;
swaylock = ctpEnable;
tmux = ctpEnable;
Expand Down

0 comments on commit c7c47fd

Please sign in to comment.