Add integrations with Nix and NixOS#7
Open
tomeon wants to merge 28 commits intoLowPowerLab:masterfrom
Open
Conversation
by detecting whether the script in question is already running as root.
via removing non-portable `echo -e` usage and replacing it with a reusable `header` function.
as `shutdowncheck.sh` is now implemented in POSIX sh. BREAKING CHANGE: diagnostic messages now use a pretty header, so any code that relies on the old message format may break.
in addition to supporting `curl`.
or the full source URL, minus script name.
and is a regular file.
in `shutdowncheck.sh`, as long as the required tools from `libgpiod` are available. Additionally, exit with an explicit and informative error message in case neither the `libgpiod` tools nor the legacy sysfs GPIO interface are available.
so that we can run actions as a non-root user (needed for flake checks).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A sort of companion to LowPowerLab/RaspberryPi-Gateway#48.
This PR adds support for using ATX-Raspi on NixOS (and on distributions using newer kernels and/or without the legacy GPIO interface). Summary of changes:
libgpiodto both the shell- and Python-based daemon implementations.sh.shutdownchecksetup.shandshutdowncheck.sh.ATX_RASPI_-prefixed environment variables.Thanks in advance for your consideration!