bayasdev / envycontrol

Easy GPU switching for Nvidia Optimus laptops under Linux
https://bayas.dev/envycontrol
MIT License
1.14k stars 55 forks source link

Add support for NixOs #156

Closed ITesserakt closed 4 months ago

ITesserakt commented 4 months ago

This PR adds support for installing this package in NixOs using flakes.

In future, envycontrol may be added to nixpkgs. See more.

Fix url in this file after merge to use right user

Package version is not automatically picked up from envycontrol.py. Consider updating it manually

klmcwhirter commented 4 months ago

Let's watch this for v4 to properly embed the version in flake.nix. Will want it to be dynamic via GitHub action instead of hard coding the version.

[EDIT] added note to https://github.com/klmcwhirter/envycontrol/blob/tests/V4_Roadmap.md