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
104 changes: 102 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/home-manager";
};
nixcord.url = "github:kaylorben/nixcord";

nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

Expand Down
19 changes: 19 additions & 0 deletions modules/nixcord/hm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ config, lib, ... }:
let
themeFile = config.lib.stylix.colors {
template = ../vesktop/template.mustache;
extension = ".css";
};
themeFileName = "stylix.theme.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 = [ themeFileName ];
};
}
1 change: 1 addition & 0 deletions stylix/hm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ in
./cursor.nix
./fonts.nix
./icon.nix
inputs.nixcord.homeManagerModules.nixcord
(import ./palette.nix { inherit palette-generator base16; })
(import ../templates.nix inputs)
] ++ autoload;
Expand Down
Loading