dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Absolute template reference

Open samhh opened this issue 3 years ago • 1 comments

I can init the templates in this repo like so:

$ nix flake init -t <path to repo>#template-name

I think that repo path could be replaced with a name were the flake exposed in the registry (nix registry list).

samhh avatar Nov 28 '22 17:11 samhh

nix.registry is for flakes. I don't know how to reference the eventual dotfiles output flake, nor do I know how to annotate a flake inline (a naive nixpkgs // { templates: etc; } doesn't work). I recall that referring to local flakes is a bit of a mess. I don't want to do it imperatively. I don't want to have to needlessly move the templates out into their own repo.

:shrug:

samhh avatar Jul 30 '23 12:07 samhh