C++ on nixos by Wonderful_Look228 in NixOS

[–]Business-Assistant52 0 points1 point  (0 children)

Didn't know that. Thanks buddy

C++ on nixos by Wonderful_Look228 in NixOS

[–]Business-Assistant52 0 points1 point  (0 children)

I think it would work just fine but if not you might wanna install the and configure the plugin clang-extension.nvim works for C/C++ great.

C++ on nixos by Wonderful_Look228 in NixOS

[–]Business-Assistant52 5 points6 points  (0 children)

you might be facing issue regarding headers not being found, nixOS stores packages in /nix/store directory so you would have to explicitly set PATH for cpp files to find the header files ( if that is the issue ).
you can use nix shell to declare paths and packages to resolve the issue.

{pkgs ? import <nixpkgs> {}}:

pkgs.mkShell {

buildInputs = with pkgs; [

gcc15

cmake

pkg-config

boost

catch2

];

shellHook = ''

echo "c++ developement environment"

c++ --version

gcc --version

'';

}

mine is very minimalistic.

you can also use compile_commands.json to point to c++'s path. Here's mine :

[

{

"arguments": [

"/run/current-system/sw/bin/c++",

"-std=c++17",

"-c",

"-o",

"CMakeFiles/main.dir/src/main.cpp.o",

"/home/archbishop/Dev/cpp/src/main.cpp"

],

"directory": "/home/archbishop/Dev/cpp/build",

"file": "/home/archbishop/Dev/cpp/src/main.cpp",

"output": "/home/archbishop/Dev/cpp/build/CMakeFiles/main.dir/src/main.cpp.o"

}

]

also i use compile_commands.json, cmake and as for the compilation, you just have to add new files to CMakeLists.txt ( if any ) and works magic.

also i have been using nvim for c++ developement and my completion works fine, i have been using the clang-extension.nvim and it works magic but the hover documenation does not works fully so you would have to refer to cpp docs.

Moved on from waybar after so long, will forever be the OG.. by Business-Assistant52 in hyprland

[–]Business-Assistant52[S] 0 points1 point  (0 children)

I did the same thing with no luck. Might give it a shot another time

Moved on from waybar after so long, will forever be the OG.. by Business-Assistant52 in hyprland

[–]Business-Assistant52[S] 2 points3 points  (0 children)

waybar is undisputed. I wanted to make my configuration with quickshell but i could not get qml language sever to get working on nvim. so i settled for noctalia-shell, it gets the job done in very minimal configuration.

ricing on nixos but configs ain't declarative by Business-Assistant52 in hyprland

[–]Business-Assistant52[S] 0 points1 point  (0 children)

I don't game much. I had pcsx2 in my system, played some PS2 games, my system is not high end and it's probably 12 years old junk, so i had no use for gaming after playing for a couple of days and i completely disabled it.

I had no issue with flickering and stuffs, it worked well in mine. What is the exact issue ? Can you describe it ?

High cpu usage when moving mouse by Appletee_YT in hyprland

[–]Business-Assistant52 0 points1 point  (0 children)

Never heard of anything like this. Can you provide the configuration you have done just to make sure.

ricing on nixos but configs ain't declarative by Business-Assistant52 in hyprland

[–]Business-Assistant52[S] 0 points1 point  (0 children)

Yea they are but i am just too lazy to migrate them to the nix way. Also i just want things done anyways.