I have a repo from github and I want to clone it to a specific directory. I know in home manager you can do home.file."..."
along with fetchFromGitHub
, but is there a way without using home manager?
Do you want a clone of the repo, or do you want to have a certain snapshot of the repo?
I want to pin a version of a repo with the rev
of fetchFromGithub
You could write a nixos activation script to do that, but that seems crazy (do you really want to potentially run this on boot?). You could invent your own mini home-manager, which could definitely do that, but that seems excessive. You be avant-guarde and use hjem, or you could… just use home-manager.
1 Like
Custom systemd user service that specifies the version to clone in the run script might do the job.
tempdile rule with fetchFromGitHub
then.
1 Like