question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use cachix-action on a NixOS host

See original GitHub issue

What is the best way to set-up cachix on a NixOS host running with a services.github-runner?

As per the issue raised on the NixOS matrix channel, this is a log I got from my attempt.

 /nix/store/l0wlqpbsvh1pgvhcdhw7qkka3d31si7k-bash-5.1-p8/bin/bash -c nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install
  error: opening lock file '/nix/var/nix/profiles/per-user/github-runner/profile.lock': Read-only file system
  Error: Action failed with error: Error: The process '/nix/store/l0wlqpbsvh1pgvhcdhw7qkka3d31si7k-bash-5.1-p8/bin/bash' failed with exit code 1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
domenkozarcommented, Oct 13, 2022

Thanks! I’m closing this as it seems it’s possible to use cachix-action on a NixOS host. Please reopen if any issues persist.

1reaction
domenkozarcommented, Dec 9, 2021

It seems like the user doesn’t have access to the profile, I can take a look at this next week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nixpkgs 22.11 manual - NixOS
Nix expressions describe how to build packages from source and are collected in the nixpkgs repository. Also included in the collection are Nix...
Read more >
Host-specific settings (different approaches) : r/NixOS - Reddit
I'd use a flake that implements an mksystem and an mkhome function that is called for host resp user attributes and looks up...
Read more >
etu/nixconfig: My NixOS config - GitHub
hosts/private-laptop/. Main private laptop, deployed like a normal NixOS system using nixos-rebuild to build new generations. ZFS snapshots are pushed from ...
Read more >
NixOS in the Cloud, step-by-step: part 1 - Justinas Stankevičius
DigitalOcean is a cloud hosting provider. ... Use the Nix language itself to define your configuration; Use similar Nix-native methods for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found