mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
try discord theme
This commit is contained in:
parent
866ccabab6
commit
eab842509c
9 changed files with 2682 additions and 604 deletions
|
|
@ -1,37 +1,7 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [ (import ./theme-template.nix) ];
|
||||
home.packages = with pkgs; [
|
||||
discord
|
||||
webcord-vencord
|
||||
(discord.override { withVencord = true; })
|
||||
];
|
||||
|
||||
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
|
||||
'')
|
||||
];
|
||||
});
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
xdg.configFile."WebCord/Themes/amoled-cord".source = pkgs.substituteAll {
|
||||
src = ./themes/theme.css;
|
||||
};
|
||||
xdg.configFile."WebCord/config.json".source = ./webcord/config.json;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue