1
Fork 0
satellite/modules/themes/catppuccin/default.nix

82 lines
1.9 KiB
Nix
Raw Normal View History

2022-05-11 23:11:54 +02:00
{ transparency ? 1, wallpaper, variant }: { pkgs, lib, ... }:
let
githubTheme = pkgs.myVimPlugins.githubNvimTheme; # github theme for neovim
foreign = pkgs.callPackage (import ./foreign.nix) { };
2022-06-18 23:09:21 +02:00
v = (a: b: if variant == "latte" then a else b);
rofi-variant = "basic";
# rofi-variant = "deathemonic";
in
{
2022-08-10 15:43:26 +02:00
name = "catppuccin-${variant}";
2022-05-10 19:04:51 +02:00
wallpaper = wallpaper.foreign or "${foreign.wallpapers}/${wallpaper}";
2022-06-18 23:09:21 +02:00
env = {
CATPPUCCIN_FLAVOUR = variant;
};
neovim = {
theme = ./nvim.lua;
2022-05-11 23:11:54 +02:00
lualineTheme = "catppuccin";
};
2022-05-11 23:11:54 +02:00
# grub.path = "${foreign.grub}/catppuccin-grub-theme/theme.txt";
tmux.path = "${foreign.tmux}/catppuccin-${variant}.conf";
sddm.path = "${foreign.sddm}";
grub.path = pkgs.nixos-grub2-theme;
2022-05-11 23:11:54 +02:00
2022-07-19 20:19:36 +02:00
xresources = builtins.readFile "${foreign.xresources}/${variant}.Xresources";
2022-05-11 23:11:54 +02:00
rofi = {
themes = "${foreign.rofi}/${rofi-variant}/.local/share/rofi/themes/";
2022-05-11 19:08:21 +02:00
config = ''
@import "${foreign.rofi}/${rofi-variant}/.config/rofi/config.rasi"
2022-08-10 16:27:03 +02:00
@theme "catppuccin-${variant}"
@import "${./rofi.rasi}"
'';
};
2022-05-11 23:11:54 +02:00
2022-05-11 20:29:47 +02:00
chromium.extensions = [
# https://github.com/catppuccin/chrome
(v
"cmpdlhmnmjhihmcfnigoememnffkimlk"
"bkkmolkhemgaeaeggcmfbghljjjoofoh")
];
2022-05-11 23:11:54 +02:00
fish.dangerousColors = lib.strings.concatStringsSep " "
[
"F2CDCD"
"DDB6F2"
"F5C2E7"
"E8A2AF"
"F28FAD"
"F8BD96"
"FAE3B0"
"ABE9B3"
"B5E8E0"
"96CDFB"
"89DCEB"
];
zathura = {
enable = true;
theme = "${foreign.zathura}/src/catppuccin-${variant}";
name = "catppuccin-${variant}";
};
alacritty.settings = {
import = [ "${foreign.alacritty}/catppuccin.yml" ];
2022-07-27 10:00:25 +02:00
# colors = "*${variant}";
window = {
padding = {
x = 0;
y = 0;
};
2022-07-19 20:19:36 +02:00
opacity = transparency;
2022-06-18 23:09:21 +02:00
gtk_theme_variant = v "light" "dark";
};
};
}