-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
69 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
self: | ||
{ lib, config, ... }: | ||
{ | ||
options = { | ||
carburetor = { | ||
enable = lib.mkEnableOption "all themes"; | ||
accent = lib.mkOption { | ||
type = with lib.types; uniq str; | ||
default = "blue"; | ||
description = "Accent color to use. Any catppuccin accent is valid"; | ||
}; | ||
variant = lib.mkOption { | ||
type = with lib.types; uniq str; | ||
default = "regular"; | ||
description = "Variant to use (regular, warm, or cool)"; | ||
}; | ||
}; | ||
}; | ||
imports = [ ./webcord.nix ]; | ||
config = lib.mkIf config.carburetor.enable { | ||
programs.webcord.carburetor = { | ||
inherit (config.carburetor) accent variant; | ||
enable = true; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
final: prev: { | ||
# Patch tool used to easily modify existing themes | ||
carburetor-patch = prev.stdenv.mkDerivation { | ||
name = "carburetor-patch"; | ||
src = ../.; | ||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp ./patch.sh $out/bin/carburetor-patch | ||
chmod +x $out/bin/carburetor-patch | ||
''; | ||
}; | ||
|
||
carburetor-discord = prev.callPackage ./discord.nix { }; | ||
carburetor-gtk = prev.callPackage ./gtk.nix { }; | ||
carburetor-papirus-folders = prev.callPackage ./papirus-folders.nix { }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters