From 82545dfdbc9ac463289e331c4cc589f2b4dde4ce Mon Sep 17 00:00:00 2001 From: Pierre Kisters <1524059+lhns@users.noreply.github.com> Date: Fri, 2 Oct 2026 00:04:38 +0200 Subject: [PATCH] install.sh: simplify - One systemctl --user wrapper (user_systemctl, with the test override) instead of outer_systemctl, outer_bus_ok and c_systemctl. - link_config for the three places that link ~/.config/home-manager; git_noprompt, receipt_planner, FLAKES_LINE and c_done inlined. - c_rm_link for the artifacts proven by their link target (screenshots, the VR pet icon); a foreign link is reported with its target. - Shorter help (--clone, cleanup, restart-check) and comments that repeated docs/cleanup.md. No cleanup path changes: every artifact an older published version wrote still has its rule. --- install.sh | 198 ++++++++++++++++++++--------------------------------- 1 file changed, 75 insertions(+), 123 deletions(-) diff --git a/install.sh b/install.sh index 8c1582d..4fa1b10 100755 --- a/install.sh +++ b/install.sh @@ -16,7 +16,6 @@ HM_FLAKE="${HM_FLAKE:-home-manager/master}" NIX_PROFILE_SCRIPT=/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh NIX_RECEIPT=/nix/receipt.json NIX_INSTALLER_BIN=/nix/nix-installer -FLAKES_LINE="experimental-features = nix-command flakes" CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" HM_CONFIG_LINK="$CONFIG_HOME/home-manager" @@ -61,19 +60,14 @@ Commands: --flake given that flake (a directory or a flake reference) --clone given your config's git repository (git@host:owner/repo, https://..., github:owner/repo), cloned into - --dir (default ~/nix-config) on branch --ref, - then used like --flake . Without a Home - Manager configuration it activates the template - first, for git's credential helpers (gh, - ~/.git-credentials), and offers 'gh auth login' - if the clone fails. Only a missing directory or - the unchanged template is replaced by the clone; - anything else there is used as it is - otherwise ~/.config/home-manager, else the flake in - ~/nix-config (linked there) - neither exists a new config in ~/nix-config from the - steam-frame-nix template, linked to - ~/.config/home-manager + --dir (default ~/nix-config) on branch --ref + (anything there but the unchanged template is + used as it is), then used like --flake . + Private repositories: see the README + otherwise ~/.config/home-manager; without it the flake + in ~/nix-config, else a new config there from + the steam-frame-nix template (either linked to + ~/.config/home-manager) Existing dotfiles that conflict are renamed to *.hm-backup-