mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-12 22:00:05 +00:00
Compare commits
No commits in common. "6dc0e02a928fa33ef66bf045afd567e6c552f17f" and "4dd08602513e3af022231f58501294195b0ab0e7" have entirely different histories.
6dc0e02a92
...
4dd0860251
4 changed files with 16 additions and 42 deletions
|
@ -4,28 +4,8 @@
|
|||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
## GENERAL
|
||||
youtube-music
|
||||
discord
|
||||
ghostty
|
||||
teams-for-linux
|
||||
enpass
|
||||
|
||||
## WEB
|
||||
firefox
|
||||
ungoogled-chromium
|
||||
|
||||
## EDITORS
|
||||
nano
|
||||
zed-editor
|
||||
apostrophe
|
||||
jetbrains.phpstorm
|
||||
arduino-ide
|
||||
obsidian
|
||||
|
||||
## RUNTIMES and CLIs for development
|
||||
bun
|
||||
git
|
||||
firefox
|
||||
];
|
||||
|
||||
home.stateVersion = "25.05";
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
lib,
|
||||
self,
|
||||
pkgs,
|
||||
config,
|
||||
osConfig,
|
||||
namespace,
|
||||
|
@ -10,15 +9,12 @@
|
|||
inherit (lib) mkEnableOption types mkIf;
|
||||
inherit (self.lib) mkOpt;
|
||||
|
||||
palette = (pkgs.lib.importJSON (config.catppuccin.sources.palette + "/palette.json")).${config.catppuccin.flavor}.colors;
|
||||
|
||||
cfg = config.${namespace}.themes.catppuccin;
|
||||
in {
|
||||
options.${namespace}.themes.catppuccin = {
|
||||
enable = mkEnableOption "the Catppuccin theme, globally.";
|
||||
accent = mkOpt types.str "blue" "The accent colour to use.";
|
||||
flavor = mkOpt types.str "macchiato" "The flavor to use.";
|
||||
palette = mkOpt (lib.types.attrsOf lib.types.raw) palette "a reference to the current active Catppuccin palette.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -32,8 +28,6 @@ in {
|
|||
cursors.flavor = cfg.flavor;
|
||||
};
|
||||
|
||||
${namespace}.themes.catppuccin = {
|
||||
gtk.enable = mkIf osConfig.${namespace}.desktop.gnome.enable true;
|
||||
};
|
||||
${namespace}.themes.catppuccin.gtk.enable = mkIf osConfig.${namespace}.desktop.gnome.enable true;
|
||||
};
|
||||
}
|
||||
|
|
14
modules/home/themes/catppuccin/palette/default.nix
Normal file
14
modules/home/themes/catppuccin/palette/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
namespace,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkOption mkIf;
|
||||
palette = (pkgs.lib.importJSON (config.catppuccin.sources.palette + "/palette.json")).${config.catppuccin.flavor}.colors;
|
||||
in {
|
||||
options.${namespace}.themes.catppuccin.palette = mkOption {type = lib.types.attrsOf lib.types.raw;};
|
||||
|
||||
config.${namespace}.themes.catppuccin.palette = mkIf config.${namespace}.themes.catppuccin.enable palette;
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{...}: {
|
||||
# Todo: rewrite as recursive operation, based on ${namespace}.users
|
||||
system.userActivationScripts = {
|
||||
removeConflictingHomeManagerBackups = {
|
||||
text = ''
|
||||
rm -f /home/jo/.gtkrc-2.0.homeManagerBackupFileExtension
|
||||
rm -f /home/jo/.config/gtk-3.0/gtk.css.homeManagerBackupFileExtension
|
||||
rm -f /home/jo/.config/gtk-4.0/gtk.css.homeManagerBackupFileExtension
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.backupFileExtension = "homeManagerBackupFileExtension";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue