feat: migrate capptuccin themes into my nur-packages, add nix's access-tokens into secrets

This commit is contained in:
Ryan Yin
2023-12-20 12:03:37 +08:00
parent 58b02a6b16
commit 50d9301e13
13 changed files with 171 additions and 254 deletions

View File

@@ -1,7 +1,6 @@
{
pkgs,
pkgs-unstable,
cattppuccin-k9s,
nur-ryan4yin,
...
}: {
home.packages = with pkgs; [
@@ -13,7 +12,7 @@
k9s = {
enable = true;
skin = let
skin_file = "${cattppuccin-k9s}/dist/mocha.yml"; # theme - cattppuccin mocha
skin_file = "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-k9s}/dist/mocha.yml"; # theme - catppuccin mocha
skin_attr = builtins.fromJSON (
builtins.readFile
# replace 'base: &base "#1e1e2e"' with 'base: &base "default"'

View File

@@ -1,10 +1,10 @@
{
pkgs,
catppuccin-helix,
nur-ryan4yin,
...
}: {
# https://github.com/catppuccin/helix
xdg.configFile."helix/themes".source = "${catppuccin-helix}/themes/default";
xdg.configFile."helix/themes".source = "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-helix}/themes/default";
programs.helix = {
enable = true;

View File

@@ -1,6 +1,6 @@
{
pkgs,
catppuccin-alacritty,
nur-ryan4yin,
...
}:
###########################################################
@@ -24,7 +24,7 @@
#
###########################################################
{
xdg.configFile."alacritty/theme_catppuccin.yml".source = "${catppuccin-alacritty}/catppuccin-mocha.yml";
xdg.configFile."alacritty/theme_catppuccin.yml".source = "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-alacritty}/catppuccin-mocha.yml";
programs.alacritty = {
enable = true;
};

View File

@@ -1,4 +1,8 @@
{catppuccin-bat, ...}: {
{
pkgs,
nur-ryan4yin,
...
}: {
# a cat(1) clone with syntax highlighting and Git integration.
programs.bat = {
enable = true;
@@ -9,7 +13,7 @@
themes = {
# https://raw.githubusercontent.com/catppuccin/bat/main/Catppuccin-mocha.tmTheme
catppuccin-mocha = {
src = catppuccin-bat;
src = nur-ryan4yin.packages.${pkgs.system}.catppuccin-bat;
file = "Catppuccin-mocha.tmTheme";
};
};

View File

@@ -1,6 +1,10 @@
{catppuccin-btop, ...}: {
{
pkgs,
nur-ryan4yin,
...
}: {
# https://github.com/catppuccin/btop/blob/main/themes/catppuccin_mocha.theme
home.file.".config/btop/themes".source = "${catppuccin-btop}/themes";
home.file.".config/btop/themes".source = "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-btop}/themes";
# replacement of htop/nmon
programs.btop = {

View File

@@ -1,4 +1,8 @@
{catppuccin-starship, ...}: {
{
pkgs,
nur-ryan4yin,
...
}: {
programs.starship = {
enable = true;
@@ -24,6 +28,6 @@
palette = "catppuccin_mocha";
}
// builtins.fromTOML (builtins.readFile "${catppuccin-starship}/palettes/mocha.toml");
// builtins.fromTOML (builtins.readFile "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-starship}/palettes/mocha.toml");
};
}

View File

@@ -1,7 +1,7 @@
{
pkgs,
catppuccin-cava,
pkgs-unstable,
nur-ryan4yin,
...
}:
# media - control and enjoy audio/video
@@ -28,7 +28,7 @@
''
# custom cava config
''
+ builtins.readFile "${catppuccin-cava}/mocha.cava";
+ builtins.readFile "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-cava}/mocha.cava";
programs = {
mpv = {

View File

@@ -2,7 +2,7 @@
lib,
pkgs,
hyprland,
catppuccin-hyprland,
nur-ryan4yin,
...
}: {
imports = [
@@ -40,7 +40,7 @@
recursive = true;
};
xdg.configFile."hypr/themes" = {
source = "${catppuccin-hyprland}/themes";
source = "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-hyprland}/themes";
recursive = true;
};