mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-05 07:05:40 +01:00
add discord theme
This commit is contained in:
parent
33398dbad1
commit
659af3d00d
8 changed files with 612 additions and 1 deletions
42
modules/home/discord/default.nix
Normal file
42
modules/home/discord/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ pkgs, lib, ... }: let
|
||||
{
|
||||
programs.discord = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
webcord
|
||||
];
|
||||
|
||||
os.nixpkgs.overlays = [
|
||||
(_final: prev: {
|
||||
webcord-vencord = prev.webcord-vencord.override {
|
||||
# Patch webcord
|
||||
webcord = prev.webcord.overrideAttrs (old: {
|
||||
patches = (old.patches or []) ++ [./webcord/unwritable-config.patch];
|
||||
});
|
||||
|
||||
# Patch vencord
|
||||
vencord-web-extension = prev.vencord-web-extension.overrideAttrs (old: {
|
||||
patches =
|
||||
(old.patches or [])
|
||||
++ [
|
||||
(prev.runCommand "vencord-settings-patch" {
|
||||
nativeBuildInputs = with prev; [jq];
|
||||
} ''
|
||||
export settings=$(jq -c '.settings' < ${./vencord/exported-settings.json})
|
||||
substituteAll ${./vencord/declarative-settings.patch} $out
|
||||
'')
|
||||
];
|
||||
});
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [webcord-vencord];
|
||||
|
||||
xdg.configFile."WebCord/Themes/amoled-cord".source = pkgs.substituteAll {
|
||||
src = ./themes/amoled-cord.css;
|
||||
};
|
||||
xdg.configFile."WebCord/config.json".source = ./webcord/config.json;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue