feat(home-manager): add support for rofi (#108)

This commit is contained in:
Henri Sota 2024-04-11 06:35:22 +02:00 committed by GitHub
parent 63dc5d60b3
commit 56f3c604a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 58 additions and 0 deletions

View file

@ -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",

View file

@ -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";

View file

@ -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";
};
};
}

View file

@ -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"

View file

@ -71,6 +71,7 @@ in
lazygit = ctpEnable;
micro = ctpEnable;
neovim = ctpEnable;
rofi = ctpEnable;
starship = ctpEnable;
swaylock = ctpEnable;
tmux = ctpEnable;