1
Fork 0
satellite/home/adrielus/features/desktop/common/rofi/default.nix

28 lines
620 B
Nix
Raw Normal View History

2023-01-10 02:38:06 +01:00
{ pkgs, config, ... }:
let
2023-03-12 05:24:25 +01:00
base16-rofi = config.lib.stylix.colors {
templateRepo = pkgs.fetchFromGitHub {
owner = "tinted-theming";
repo = "base16-rofi";
sha256 = "03y4ydnd6sijscrrp4qdvckrckscd39r8gyhpzffs60a1w4n76j5";
rev = "3f64a9f8d8cb7db796557b516682b255172c4ab4";
};
2023-01-10 02:38:06 +01:00
};
in
{
home.packages = with pkgs; [ rofi ];
xdg.configFile."rofi/config.rasi".text = ''
// Manual config
${builtins.readFile ./config.rasi}
// Inject font
configuration {
2023-03-12 05:24:25 +01:00
font: "${config.stylix.fonts.monospace.name}";
}
2023-01-10 02:38:06 +01:00
// Theme
2023-03-12 05:24:25 +01:00
${builtins.readFile base16-rofi}
2023-01-10 02:38:06 +01:00
'';
}