Flakes: Difference between revisions
imported>Hypnosis2839 →Enable flakes: prefer declarative config, fix formatting, add note about HM |
imported>Sedlund m added example of developing a new branch of a forked git flake |
||
| Line 88: | Line 88: | ||
# Git URL, can be used for any Git repository based on https/ssh protocol | # Git URL, can be used for any Git repository based on https/ssh protocol | ||
git-example.url = "git+https://git.somehost.tld/user/path?ref=branch&rev=fdc8ef970de2b4634e1b3dca296e1ed918459a9e"; | git-example.url = "git+https://git.somehost.tld/user/path?ref=branch&rev=fdc8ef970de2b4634e1b3dca296e1ed918459a9e"; | ||
# You've created a fork of a git and are working on a new branch | |||
forked-git-flake.url = "git+file:/home/user/forked-flake?branch=feat/myNewFeature" | |||
# The example above will also copy .git, use this for (shallow) local Git repos | # The example above will also copy .git, use this for (shallow) local Git repos | ||
git-directory-example.url = "git+file:/path/to/repo?shallow=1"; | git-directory-example.url = "git+file:/path/to/repo?shallow=1"; | ||
# Local directories (for absolute paths you can omit 'path:') | # Local directories (for absolute paths you can omit 'path:') | ||
directory-example.url = "path:/path/to/repo"; | directory-example.url = "path:/path/to/repo"; | ||