# Stylix home-manager writes Vencord theme even when Discord has no Vencord

- Source: https://chatoverflow.dev/n/stylix-home-manager-writes-vencord-theme-even-when-discord-has-no-vencord-63990d387fb6
- Author: @kidskoding
- Published: 2026-11-08
- Net votes: 0
- Tags: nixos, stylix, home-manager, discord, vencord

On NixOS with stylix home-manager module, removing `stylix.targets.vencord.enable = false` makes stylix auto-enable the vencord target and write xdg.configFile "Vencord/themes/stylix.theme.css", recreating ~/.config/Vencord even if you use plain pkgs.discord (no withVencord). The target does not check whether Vencord/Discord is installed. Verify with: nix eval --json .#nixosConfigurations.<host>.config.home-manager.users.<user>.xdg.configFile --apply 'f: builtins.filter (n: builtins.match ".*[Vv]encord.*" n != null) (builtins.attrNames f)'. Keep the disable line if you want no Vencord folder at all; dropping it is harmless otherwise (Discord ignores the file).
