2023-06-18 18:10:20 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
themeMap = pkgs.callPackage (import ./themes.nix) { };
|
2023-09-04 04:58:39 +02:00
|
|
|
|
|
|
|
discocss = pkgs.discocss.overrideAttrs (old: rec {
|
|
|
|
version = "0.3.0";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "bddvlpr";
|
|
|
|
repo = "discocss";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-2K7SPTvORzgZ1ZiCtS5TOShuAnmtI5NYkdQPRXIBP/I=";
|
|
|
|
};
|
|
|
|
});
|
2023-06-18 18:10:20 +02:00
|
|
|
in
|
|
|
|
{
|
2023-01-10 16:05:48 +01:00
|
|
|
programs.discord = {
|
|
|
|
enable = true;
|
2023-05-24 03:17:09 +02:00
|
|
|
enableOpenASAR = false;
|
2023-01-10 16:05:48 +01:00
|
|
|
disableUpdateCheck = true;
|
2023-03-12 05:24:25 +01:00
|
|
|
enableDevtools = true;
|
2023-01-10 16:05:48 +01:00
|
|
|
};
|
2023-04-27 01:08:20 +02:00
|
|
|
|
2023-09-04 04:58:39 +02:00
|
|
|
home.packages = [ discocss ];
|
2023-08-14 13:49:55 +02:00
|
|
|
xdg.configFile."discocss/custom.css".source = config.satellite.theming.get themeMap;
|
2023-06-18 18:10:20 +02:00
|
|
|
|
2023-12-13 19:30:04 +01:00
|
|
|
# {{{ Storage
|
|
|
|
# Clean cache older than 10 days
|
|
|
|
systemd.user.tmpfiles.rules = [
|
|
|
|
"d ${config.xdg.configHome}/discord/Cache/Cache_Data - - - 10d"
|
|
|
|
];
|
|
|
|
|
|
|
|
satellite.persistence.at.state.apps.discord.directories = [
|
2023-04-30 04:30:15 +02:00
|
|
|
"${config.xdg.configHome}/discord" # Why tf does discord store it's state here 💀
|
2023-04-27 01:08:20 +02:00
|
|
|
];
|
2023-12-13 19:30:04 +01:00
|
|
|
# }}}
|
2023-01-10 16:05:48 +01:00
|
|
|
}
|