Clangd LSP support for C/C++ on NixOS?
https://lemmy.world/post/34656086
Clangd LSP support for C/C++ on NixOS? - Lemmy.World
I’m working on switching over to NixOS on my desktop and one of the last things
I haven’t got fully working is my neovim config. My LSP’s are able to start, and
all of them work fine except for clangd. For some reason, it can’t find C/C++
header files for any installed libraries. I have all of the LSPs themselves
installed through Mason in Neovim, and I have programs.nix-ld.enable = true
enabled so they can be run correctly. screenshot showing 'file not found' error
on '#include <fcntl.h>'
[https://lemmy.world/pictrs/image/09ea92ae-a697-4701-b914-b28ce0fb604d.png]
screenshot showing 'file not found' error on '#include <SDL2/SDL2.h>'
[https://lemmy.world/pictrs/image/1194c812-10b4-4208-a912-a88bfec72534.png] Here
is the shell.nix file I’m using for this project: { pkgs ? import <nixpkgs> {}
}: pkgs.mkShell.override { stdenv = pkgs.gccStdenv; } { nativeBuildInputs = with
pkgs.buildPackages; [ glibc libgcc clang-tools libclang SDL2 SDL2_image
SDL2_sound ]; CPATH = pkgs.lib.makeSearchPathOutput "dev" "include" pkgs.glibc
pkgs.SDL2 pkgs.SDL2_Image pkgs.SDL2_sound; } Is there something extra I need to
do to get clangd to find the C headers being used by the project? when I
actually run gcc it compiles fine, it just can’t seem to find them correctly in
Neovim Edit: Forgot to mention that I’m using this shell with direnv and
launching nvim directly from the same shell that I’m compiling from
Pipewire/Wireplumber set volume based on node name
https://lemmy.world/post/29712458
Pipewire/Wireplumber set volume based on node name - Lemmy.World
I have a virtual source and a virtual sink which I’m using to forward audio
to/from chat apps (Matrix, Discord, Zoom, etc.) so I can control the mic/output
volume independently of everything else on my system. I have them setup and
working fine using pipewire.conf.d files. The problem is that using wpctl to
change volume requires having an ID, but those aren’t static. Normally the
solution would be to use @DEFAULT_AUDIO_SOURCE@ (or sink), but that wouldn’t
work in this case. Is there a way to adjust volume/toggle mute without having
the ID? Or alternatively, is there a way to get the ID for a specific node name
that I can put in a bash script? If I’m asking this in the wrong place, is there
a better place to go?
celeste rule - Lemmy.World
I wanted to see if video uploads work, I may have a few hours in celeste
Bytes feed not working again - Lemmy.World
My bytes.programming.dev’s main feed is erroring again. It looks like everything
else is loading fine, I just can’t see anything on the timeline for some reason.
Is it the same DB issue that was happening last time?
[https://lemmy.world/pictrs/image/074c83e7-7ce8-47d0-b363-0bb228b7708c.jpeg]

Only 5 years out of date now 🙃 - Lemmy.World
C++ try not to add footguns challenge (impossible)
https://lemmy.world/post/20115503

C++ try not to add footguns challenge (impossible) - Lemmy.World
Source [https://www.modernescpp.com/index.php/reflection-in-c26/] ::: spoiler
Alt text: A screenshot from the linked article titled “Reflection in C++26”,
showing reflection as one of the bullet points listed in the “Core Language”
section :::
Bytes.programming.dev timeline issues?
https://lemmy.world/post/19943264
Bytes.programming.dev timeline issues? - Lemmy.World
Not really sure if there is a better place to put this, but is
bytes.programming.dev having issues for anyone else? I can log in but my
timeline doesn’t load at all.

Yes, yes we can - Lemmy.World
Credit to https://lemmy.world/post/18689927 [https://lemmy.world/post/18689927]
for the original post Alt text: >Me: mom can we have (Linux penguin)? >The rest
of the meme is scribbled out and over it is one word, “Yes”
What's the impact of distrobox (and by extension docker/podman) on battery life?
https://lemmy.world/post/16356053
What's the impact of distrobox (and by extension docker/podman) on battery life? - Lemmy.World
I’m trying out NixOS on my laptop right now and I’m loving it so far, but I was
thinking of setting up distro box for ubuntu (mostly for a few developer
environments dependent on it) and arch (for packages that aren’t on nixpkgs
yet). I was wondering about the battery life hit on a laptop and I couldn’t find
anything definitive on google/ddg. Has anyone here noticed a difference?

Good luck web devs - Lemmy.World
::: spoiler Alt text: Twitter post by Daniel Feldman (@d_feldman): Linux is the
only major operating system to support diagonal mode (credit [Twitter] @xssfox).
Image shows an untrawide monitor rotated about 45 degrees, with a horizontal IDE
window taking up a bottom triangle. A web browser and settings menu above it are
organized creating a window shape almost like a stepped pyramid. ::: Edit: alt
text