nwg-piotr / nwg-displays

Output management utility for sway and Hyprland.
MIT License
336 stars 22 forks source link

Add flake.nix to support building this project under nix. #10

Closed jamesbucher closed 1 year ago

jamesbucher commented 1 year ago

Adds in a flake.nix file that allows users of the Nix package manager to build and install nwg-displays via the Flakes feature.

nwg-piotr commented 1 year ago

Hope you know what you're doing, as I know nothing about NixOS. Do you need a new release, when it's merged?

jamesbucher commented 1 year ago

This shouldn't need a new release. This PR is only allowing nix users to take a dependency on the project. It is not changing nwg-displays at all so I don't think it's appropriate to do any sort of release/version bump. Versioning of the Nix side of things will happen via the git sha if someone takes a dependency on this anyways.

I actually had this as a separate repository for my own personal use. I figured it would be useful for a wider audience and it made the most sense to have it be in the project's repository. That way users don't have to find some random different repository.

Thanks for making this tool by the way. I was coding up my display configs by hand for sway and that was definitely tedious. Having a GUI to manage this is a big improvement.

nwg-piotr commented 1 year ago

Thank you!

Sure, if you use just the master branch, I'll merge and leave it as is for now.