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

Improve support for NixOS #103

Open
DamienCassou opened this issue Apr 21, 2020 · 1 comment
Open

Improve support for NixOS #103

DamienCassou opened this issue Apr 21, 2020 · 1 comment

Comments

@DamienCassou
Copy link

In NixOS, there is a /etc/os-release file which contains something like:

NAME=NixOS
ID=nixos
VERSION="20.09.git.54408d8707e (Nightingale)"
VERSION_CODENAME=nightingale
VERSION_ID="20.09.git.54408d8707e"
PRETTY_NAME="NixOS 20.09 (Nightingale)"
LOGO="nix-snowflake"
HOME_URL="https://nixos.org/"
DOCUMENTATION_URL="https://nixos.org/nixos/manual/index.html"
SUPPORT_URL="https://nixos.org/nixos/support.html"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
@retrohacker
Copy link
Owner

retrohacker commented Apr 23, 2020

Thanks @DamienCassou ❤️

We support custom parsing of the os-release files by dropping a module in ./logic file named after the distribution as it appears in our os.json file. These are loaded in https://github.com/retrohacker/getos/blob/master/index.js by the customLogic function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants