Use cachix-action on a NixOS host
See original GitHub issueWhat 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:
- Created 2 years ago
- Comments:22 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
It seems like the user doesn’t have access to the profile, I can take a look at this next week.