Skip to content

Commit

Permalink
discord: remove cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Flameopathic committed Feb 12, 2025
1 parent 3e8eccb commit 096b3f0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/discord/hm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ let
inherit (config.stylix) fonts;
in
import ./template.nix { inherit colors fonts; };
cfg = config.stylix;
in
{
options.stylix.targets =
Expand All @@ -25,13 +24,13 @@ in
nixcord.enable = mkEnableTarget "Nixcord" true;
};

config = lib.mkIf cfg.enable (
config = lib.mkIf config.stylix.enable (
lib.mkMerge [
(lib.mkIf cfg.targets.vencord.enable {
(lib.mkIf config.stylix.targets.vencord.enable {
xdg.configFile."Vencord/themes/stylix.theme.css".text = template;
})

(lib.mkIf cfg.targets.vesktop.enable (
(lib.mkIf config.stylix.targets.vesktop.enable (
lib.mkMerge [
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
xdg.configFile."vesktop/themes/stylix.theme.css".text = template;
Expand All @@ -44,7 +43,7 @@ in
]
))

(lib.mkIf cfg.targets.nixcord.enable (
(lib.mkIf config.stylix.targets.nixcord.enable (
lib.optionalAttrs (builtins.hasAttr "nixcord" options.programs) {
xdg.configFile =
let
Expand Down

0 comments on commit 096b3f0

Please sign in to comment.