Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Nix flake and better Nix support #553

Merged
merged 1 commit into from
Sep 16, 2023

Conversation

shadeyg56
Copy link
Collaborator

As a fairly new user of NixOS, I found that the current nixpkg is very outdated.

After discovering this, I decided to package auto-cpufreq myself so I could enjoy it from the latest releases. Also as someone who has been helping develop parts of auto-cpufreq, I wanted to setup a Nix dev environment through a flake.nix file. I also rewrote my Nix package to work with the flake and created a NixOS module that any NixOS user can take advantage of. This will allow us to keep up with the latest changes of auto-cpufreq without worrying that the nixpkg is outdated.

Note that the flake.lock file will need to be updated every once in a while to keep up with changes to Python, packages, etc... This is super easy and I can take care of this as needed. It could even be setup automatically through a GitHub action if we so wish

In addition to the flake, I have updated the README to include info about how to install on NixOS and have updated auto-cpufreq-installer to exit and give the user a message upon detection of NixOS

In the meantime, I do plan on writing a PR to update the nixpkg to the latest release, but I still think this is a good change for the minority of Nix users :)

@shadeyg56 shadeyg56 added the enhancement New feature or request label Sep 12, 2023
@AdnanHodzic
Copy link
Owner

This is amazing! Great job.

@AdnanHodzic AdnanHodzic merged commit 3e2b779 into AdnanHodzic:master Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants