[feat] Fix the issue with sourcing the Cattppucin themes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{ config, pkgs, lib, device, ... }:
|
||||
let
|
||||
start-tmux = (import ../scripts/start-tmux.nix) pkgs;
|
||||
# https://mipmip.github.io/home-manager-option-search/
|
||||
start-tmux = (import ../scripts/start-tmux.nix) pkgs;
|
||||
lazy = false;
|
||||
in
|
||||
{
|
||||
@@ -114,6 +114,7 @@ in
|
||||
vi = "nvim";
|
||||
nv = "nvim";
|
||||
g = "git";
|
||||
yy = "yazi";
|
||||
cd = "z";
|
||||
ls = "exa";
|
||||
t = "${start-tmux}";
|
||||
@@ -127,13 +128,16 @@ in
|
||||
'';
|
||||
interactiveShellInit = ''
|
||||
${pkgs.spotify-player}/bin/spotify_player generate fish | source
|
||||
${pkgs.macchina.outPath}/bin/macchina
|
||||
${pkgs.macchina}/bin/macchina
|
||||
'';
|
||||
};
|
||||
|
||||
nushell = {
|
||||
enable = true;
|
||||
shellAliases = { "cd" = "z"; };
|
||||
shellAliases = {
|
||||
cd = "z";
|
||||
yy = "yazi";
|
||||
};
|
||||
package = pkgs.nushellFull;
|
||||
configFile.text = ''
|
||||
$env.config = {
|
||||
@@ -156,13 +160,8 @@ in
|
||||
# Other config here
|
||||
format = "$all"; # Remove this line to disable the default prompt format
|
||||
palette = "catppuccin_${flavour}";
|
||||
} // builtins.fromTOML (builtins.readFile (pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "catppuccin";
|
||||
repo = "starship";
|
||||
rev = "main"; # Replace with the latest commit hash
|
||||
sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0";
|
||||
} + /palettes/${flavour}.toml));
|
||||
} // builtins.fromTOML (builtins.readFile (pkgs.catppuccinThemes.starship
|
||||
+ /palettes/${flavour}.toml));
|
||||
};
|
||||
eza = {
|
||||
enable = true;
|
||||
@@ -190,11 +189,11 @@ in
|
||||
enable = true;
|
||||
config = { theme = "catppuccin"; };
|
||||
themes = {
|
||||
# catppuccin =
|
||||
# {
|
||||
# src = "${pkgs.catppuccinThemes.bat}";
|
||||
# file = "Catppuccin-mocha.tmTheme";
|
||||
# };
|
||||
catppuccin =
|
||||
{
|
||||
src = "${pkgs.catppuccinThemes.bat}/themes";
|
||||
file = "Catppuccin Mocha.tmTheme";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -174,7 +174,9 @@
|
||||
};
|
||||
|
||||
catppuccinThemes = final: prev: {
|
||||
catppuccinThemes = ./themes/catppuccin.nix;
|
||||
catppuccinThemes = import ./themes/catppuccin.nix {
|
||||
pkgs = final.pkgs;
|
||||
};
|
||||
};
|
||||
|
||||
overlays = [
|
||||
|
||||
@@ -4,15 +4,15 @@
|
||||
|
||||
settings = {
|
||||
source =
|
||||
let
|
||||
catppuccin = pkgs.fetchFromGitHub {
|
||||
owner = "catppuccin";
|
||||
repo = "hyprland";
|
||||
rev = "main";
|
||||
sha256 = "sha256-9BhZq9J1LmHfAPBqOr64chiAEzS+YV6zqe9ma95V3no";
|
||||
};
|
||||
in
|
||||
"${catppuccin}/themes/mocha.conf";
|
||||
# let
|
||||
# catppuccin = pkgs.fetchFromGitHub {
|
||||
# owner = "catppuccin";
|
||||
# repo = "hyprland";
|
||||
# rev = "main";
|
||||
# sha256 = "sha256-9BhZq9J1LmHfAPBqOr64chiAEzS+YV6zqe9ma95V3no";
|
||||
# };
|
||||
# in
|
||||
"${pkgs.catppuccinThemes.hyprland}/themes/mocha.conf";
|
||||
monitor = [
|
||||
",preferred,auto,auto"
|
||||
"DP-1, 2560x1440@170, 0x0, 1, transform, 0"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, flavor, ... }:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
mkCatppuccin = { owner ? "catppuccin", item, rev ? "main", sha256 ? pkgs.lib.fakeSha256 }:
|
||||
pkgs.stdenv.mkDerivation {
|
||||
@@ -8,19 +8,27 @@ let
|
||||
inherit owner rev sha256;
|
||||
repo = item;
|
||||
};
|
||||
buildPhase = ''
|
||||
echo "Building Cattppucin for ${item}..."
|
||||
mkdir -p $out
|
||||
cp -r ./* $out/
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
bat = mkCatppuccin {
|
||||
item = "bat";
|
||||
sha256 = "sha256-PLbTLj0qhsDj+xm+OML/AQsfRQVPXLYQNEPllgKcEx4";
|
||||
};
|
||||
|
||||
hyprland = mkCatppuccin {
|
||||
item = "hyprland";
|
||||
sha256 = "sha256-9BhZq9J1LmHfAPBqOr64chiAEzS+YV6zqe9ma95V3no";
|
||||
};
|
||||
|
||||
starship = mkCatppuccin {
|
||||
item = "starship";
|
||||
sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user