Skip to content

Commit

Permalink
tweak(stylix): theme
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed May 25, 2024
1 parent 03b336d commit ccad735
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
28 changes: 17 additions & 11 deletions modules/nixos/programs/spotify/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,29 @@ in
{
options.elementary.programs.spotify = with types; {
enable = mkEnableOption "Spotify";
theme = mkOpt str "Sleek" "The Spicetify theme to apply";
colorScheme = mkOpt str "RosePine" "The color scheme to apply to the Spicetify theme";
spicetifyTheme = {
enable = mkEnableOption "Spicetify theme";
theme = mkOpt str "Sleek" "The Spicetify theme to apply";
colorScheme = mkOpt str "RosePine" "The color scheme to apply to the Spicetify theme";
};
};

config = mkIf cfg.enable {
elementary.home = {
extraOptions.imports = [ inputs.spicetify-nix.homeManagerModule ];

programs.spicetify = {
enable = true;
inherit (cfg) colorScheme;
theme = spicePkgs.themes.${cfg.theme};
enabledExtensions = with spicePkgs.extensions; [
genre
keyboardShortcut
];
};
programs.spicetify =
{
enable = true;
enabledExtensions = with spicePkgs.extensions; [
genre
keyboardShortcut
];
}
// (lib.optionalAttrs cfg.spicetifyTheme.enable {
inherit (cfg.spicetifyTheme) colorScheme;
theme = spicePkgs.themes.${cfg.spicetifyTheme.theme};
});
};
};
}
6 changes: 2 additions & 4 deletions modules/nixos/stylix/stylesheets/main/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ with lib.elementary;
elementary.stylix.extraOptions = {
polarity = "dark";
image = "${pkgs.elementary.wallpapers}/share/wallpapers/cyberpunkgirl-inverted.png";
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-soft.yaml";

opacity = {
terminal = 0.85;
Expand Down Expand Up @@ -101,7 +101,6 @@ with lib.elementary;
gaps_in = 5
border_size = 2
col.active_border = rgb(f5bde6) rgb(c6a0f6) rgb(8bd5ca) rgb(91d7e3) rgb(7dc4e4) rgb(8aadf4) rgb(b7bdf8)
}
decoration {
Expand All @@ -125,8 +124,7 @@ with lib.elementary;
}
{
elementary.programs.spotify = {
theme = "Sleek";
colorScheme = "RosePine";
enable = true;
};
}
];
Expand Down

0 comments on commit ccad735

Please sign in to comment.