install: the template as one commit, without git's dirty warning

create_config locks the template as a path (not the git repository) and
commits everything once, with the user's git identity or, without one,
a fallback passed with -c for that commit only. The template switch no
longer warns that the tree is dirty; the marker and the one-commit rule
are unchanged.
This commit is contained in:
Pierre Kisters committed 2026-10-02 00:39:50 +02:00
1 parent 82545dfdbc
commit e597c6e34b
4 files changed
+25 -7

No files matched your search

+1 -1
View File
@@ -463,7 +463,7 @@ versions left: [docs/cleanup.md](docs/cleanup.md).
- `experimental-features = nix-command flakes` in `~/.config/nix/nix.conf`
if Nix was already there without flakes;
- `~/nix-config` (your configuration, a git repository, from the template
with your user name filled into `flake.nix`; with `--clone` only until the
with your user name filled into `flake.nix`, locked and committed; with `--clone` only until the
clone replaces it) and the link `~/.config/home-manager` to it, unless that
exists or `--flake` is given (with `--flake <dir>` or `--clone`, the link
to that directory unless it exists); uninstall removes the link, never