scorpion-26 / gBar

Blazingly fast status bar written with GTK
MIT License
459 stars 17 forks source link

making this work on nixos outside home manager #102

Open zombiehoffa opened 1 month ago

zombiehoffa commented 1 month ago

to make this work without home manager I had to do the inputs.gBar.url = "github:scorpion-26/gBar"; in my flake.nix but to get gbar to work in my configuration.nix under environment.systemPackages = with pkgs; [ I had to have inputs at the front (i.e. my line for gbar was inputs.gBar.defaultPackage.x86_64-linux not sure if this is a bug, something specific to deal with the mish mash of howtos I followed to get my nix system to work, or what, but I figured I should post it here in case someone is having the same problem.

I'm an utter noob at nixos just bashing keys trying to cobble something together so this might not be that useful, I don't know enough to know, lol. Anyways, better to report when I do something that doesn't match the docs and it works rather than let it slip away on the off chance it's actually useful.

Eken-beep commented 3 weeks ago

Nope you're right. inputs.gBar.defaultPackage.x86_64-linux in the modules section is the sanctioned way of doing it. It is confusing and I should fix it to be more in line with how other flake packages do it (or just submit this to nixpkgs directly and we'll avoid this confusion entirely).