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

docs: Add instructions to use cachix on nixos #1277

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

k3yss
Copy link
Collaborator

@k3yss k3yss commented Jun 13, 2024

While compiling devenv on NixOS, I noticed that the instructions for using cachix were only provided for non-NixOS distributions. This PR addresses this issue and adds documentation for NixOS.

@domenkozar
Copy link
Member

If it's NixOS we can check if /etc/NIXOS exists and then offer append the extra instructions.

@k3yss
Copy link
Collaborator Author

k3yss commented Jun 14, 2024

Or we can simply not display the first instructions and only display OS specific instructions:

A simple bash script to demonstrate what I mean

if [ -f /etc/NIXOS ]; then
    echo "Running on NixOS"
    # Perform NixOS-specific tasks here
else
    echo "Not running on NixOS"
    # Perform tasks for other systems
fi

@domenkozar domenkozar merged commit 3bdcfeb into cachix:main Jun 19, 2024
6 checks passed
@k3yss k3yss deleted the work/keys/cachix-instruction branch June 19, 2024 10:41
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

Successfully merging this pull request may close these issues.

2 participants