Added nix-ld and discord rich presence for zed
All checks were successful
Check config / build (push) Successful in 58s

This commit is contained in:
Alexandre 2026-08-22 10:22:12 +02:00
parent 4a2f280fb2
commit a8020955a2
2 changed files with 41 additions and 0 deletions

View File

@ -2,6 +2,10 @@
{
flake.nixosModules.nixConfig = { config, pkgs, inputs, ...}: {
programs = {
nix-ld = {
enable = true;
};
direnv = {
enable = true;
silent = true;

View File

@ -23,6 +23,9 @@
# Themes
"rosé pine"
"catppuccin blur"
# Discord
"zed-discord-presence"
];
extraPackages = [ pkgs.nixd ];
@ -34,6 +37,40 @@
};
hour_format = "hour24";
tab_size = 2;
lsp = {
discord_presence = {
initialization_options = {
application_id = "1263505205522337886";
base_icons_url = "https://raw.githubusercontent.com/xhyrom/zed-discord-presence/main/assets/icons/";
state = "Working on {filename}";
details = "In {workspace}";
large_image = "{base_icons_url}/{language:lo}.png";
large_text = "{language:u}";
small_image = "{base_icons_url}/zed.png";
small_text = "Zed";
idle = {
timeout = 300; # 5 mins
action = "change_activity";
state = "Thinking...";
details = "In Zed";
large_image = "{base_icons_url}/zed.png";
large_text = "Zed";
small_image = "{base_icons_url}/idle.png";
small_text = "Idle";
};
git_integration = true;
};
};
};
};
};
};