diff --git a/modules_dentritic/features/core/nix.nix b/modules_dentritic/features/core/nix.nix index 9c128c2..33058b1 100644 --- a/modules_dentritic/features/core/nix.nix +++ b/modules_dentritic/features/core/nix.nix @@ -2,6 +2,10 @@ { flake.nixosModules.nixConfig = { config, pkgs, inputs, ...}: { programs = { + nix-ld = { + enable = true; + }; + direnv = { enable = true; silent = true; diff --git a/modules_dentritic/features/desktop/core/editors.nix b/modules_dentritic/features/desktop/core/editors.nix index a742e67..6e58029 100644 --- a/modules_dentritic/features/desktop/core/editors.nix +++ b/modules_dentritic/features/desktop/core/editors.nix @@ -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; + }; + }; + }; }; }; };