1
Fork 0
satellite/home/features/desktop/discord/default.nix
Matei Adriel a39544b93d
Change a lot of neovim stuff
and remove some outdated firefox profiles
2024-01-04 05:24:55 +01:00

37 lines
935 B
Nix

{ config, pkgs, ... }:
let
themeMap = pkgs.callPackage (import ./themes.nix) { };
discocss = pkgs.discocss.overrideAttrs (old: rec {
version = "0.3.0";
src = pkgs.fetchFromGitHub {
owner = "bddvlpr";
repo = "discocss";
rev = "v${version}";
hash = "sha256-2K7SPTvORzgZ1ZiCtS5TOShuAnmtI5NYkdQPRXIBP/I=";
};
});
in
{
programs.discord = {
enable = true;
enableOpenASAR = false;
disableUpdateCheck = true;
enableDevtools = true;
};
home.packages = [ discocss ];
xdg.configFile."discocss/custom.css".source = config.satellite.theming.get themeMap;
# {{{ 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 = [
"${config.xdg.configHome}/discord" # Why tf does discord store it's state here 💀
];
# }}}
}