feat(home-manager): add support for rofi (#108)
This commit is contained in:
parent
63dc5d60b3
commit
56f3c604a8
5 changed files with 58 additions and 0 deletions
|
@ -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",
|
||||
|
|
|
@ -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";
|
||||
|
|
21
modules/home-manager/rofi.nix
Normal file
21
modules/home-manager/rofi.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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"
|
||||
|
|
1
test.nix
1
test.nix
|
@ -71,6 +71,7 @@ in
|
|||
lazygit = ctpEnable;
|
||||
micro = ctpEnable;
|
||||
neovim = ctpEnable;
|
||||
rofi = ctpEnable;
|
||||
starship = ctpEnable;
|
||||
swaylock = ctpEnable;
|
||||
tmux = ctpEnable;
|
||||
|
|
Loading…
Reference in a new issue