Skip to content

Commit

Permalink
fix(nix): Only enable GTK on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Jun 12, 2024
1 parent a9c8ccf commit 21a98af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nixos-modules/theme.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ inputs, pkgs, lib, config, ... }:
{ inputs, pkgs, lib, config, isLinux, ... }:
with lib;
let inherit (config) theme;
in {
Expand Down Expand Up @@ -34,7 +34,7 @@ in {
};
# handle GTK themeing
gtk = {
enable = true;
enable = isLinux;
theme = {
package = pkgs.tokyonight-gtk-theme;
name = "Tokyonight-Dark-BL";
Expand All @@ -45,7 +45,7 @@ in {
name = "Tokyonight-Dark-BL";
};
};
xdg.configFile = {
xdg.configFile = { } // lib.optionalAttrs isLinux {
"gtk-4.0/assets".source =
"${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/assets";
"gtk-4.0/gtk.css".source =
Expand Down

0 comments on commit 21a98af

Please sign in to comment.