Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixcord: init module #767

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
18 changes: 18 additions & 0 deletions modules/nixcord/hm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{ config, lib, ... }:
let
themeFile = config.lib.stylix.colors {
template = ../vesktop/template.mustache; # Uses the same template as vesktop
ari-rs marked this conversation as resolved.
Show resolved Hide resolved
extension = ".css";
};
in
{
options.stylix.targets.nixcord.enable =
config.lib.stylix.mkEnableTarget "Nixcord" true;

config =
lib.mkIf (config.stylix.enable && config.stylix.targets.nixcord.enable)
{
xdg.configFile."Vencord/themes/stylix.theme.css".source = themeFile;
programs.nixcord.config.enabledThemes = [ "stylix.theme.css" ];
ari-rs marked this conversation as resolved.
Show resolved Hide resolved
};
}
Loading