Skip to content

Commit

Permalink
feat(home-manager): add support for rofi (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrisota authored Apr 11, 2024
1 parent 63dc5d6 commit 56f3c60
Show file tree
Hide file tree
Showing 5 changed files with 58 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 @@ -399,6 +399,26 @@
},
"version": "989420b24e1f651b176c9d6083ad7c3b90a27f8b"
},
"rofi": {
"cargoLocks": null,
"date": "2022-12-31",
"extract": null,
"name": "rofi",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "catppuccin",
"repo": "rofi",
"rev": "5350da41a11814f950c3354f090b90d4674a95ce",
"sha256": "sha256-DNorfyl3C4RBclF2KDgwvQQwixpTwSRu7fIvihPN8JY=",
"type": "github"
},
"version": "5350da41a11814f950c3354f090b90d4674a95ce"
},
"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 @@ -241,6 +241,18 @@
};
date = "2024-02-03";
};
rofi = {
pname = "rofi";
version = "5350da41a11814f950c3354f090b90d4674a95ce";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "rofi";
rev = "5350da41a11814f950c3354f090b90d4674a95ce";
fetchSubmodules = false;
sha256 = "sha256-DNorfyl3C4RBclF2KDgwvQQwixpTwSRu7fIvihPN8JY=";
};
date = "2022-12-31";
};
starship = {
pname = "starship";
version = "5629d2356f62a9f2f8efad3ff37476c19969bd4f";
Expand Down
21 changes: 21 additions & 0 deletions modules/home-manager/rofi.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{ config
, lib
, sources
, ...
}:
let
inherit (lib) ctp;
cfg = config.programs.rofi.catppuccin;
enable = cfg.enable && config.programs.rofi.enable;
in
{
options.programs.rofi.catppuccin =
lib.ctp.mkCatppuccinOpt "rofi";

config.programs.rofi = lib.mkIf enable {
theme = builtins.path {
name = "catppuccin-${cfg.flavour}.rasi";
path = "${sources.rofi}/basic/.local/share/rofi/themes/catppuccin-${cfg.flavour}.rasi";
};
};
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ fetch.github = "catppuccin/palette"
src.git = "https://github.com/catppuccin/polybar.git"
fetch.github = "catppuccin/polybar"

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

[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 @@ -71,6 +71,7 @@ in
lazygit = ctpEnable;
micro = ctpEnable;
neovim = ctpEnable;
rofi = ctpEnable;
starship = ctpEnable;
swaylock = ctpEnable;
tmux = ctpEnable;
Expand Down

0 comments on commit 56f3c60

Please sign in to comment.