Silence the neovim default and ssh matchBlocks deprecation warnings #8
Labels
No labels
blocked
bug
decision
duplicate
enhancement
help wanted
invalid
landed?
question
ready-to-merge
stale
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/profiles#8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two Home Manager 26.05 deprecations print on every VM build and on the hypervisor's user profile, which imports
modules/preferences.nixthrough the archetypes host composition.modules/preferences.nixenablesprograms.neovimwithhome.stateVersion = "25.11", so Home Manager warns that the defaults ofprograms.neovim.withRubyandprograms.neovim.withPython3changed fromtruetofalse. Set both explicitly tofalse, the new default: nothing in the profile configures a plugin that needs the Ruby or Python providers, and the legacytrueonly adds those runtimes to every closure. Leavehome.stateVersionalone; it is not a knob for silencing warnings.hosts/dev/allod-dev/home.nixdefines the forge host throughprograms.ssh.matchBlocks, the deprecated alias ofprograms.ssh.settings. Rewrite it asprograms.ssh.settings.<forgeHost>with the upstream directive namesHostName,User,Port,IdentityFile,IdentitiesOnly. The archetypes module that defines the same host (allod/archetypes,modules/home-shared.nix) keeps itsIdentityFileatlib.mkDefault, so this profile's key still wins whether or not that migration has landed.Validation
nix flake checkin this repo passes.allod-devtoplevel with this profile revision and the archetypes revision either side of its own migration shows no neovim default warning and nomatchBlockswarning attributed to this file, and the rendered~/.ssh/configfor the forge host is unchanged.Scope
In: the two files above. Out: the archetypes module,
home.stateVersion.Direction change for the SSH half. Under allod/archetypes#54 the framework renders the forge host entry for every dev VM from the VM's own identity, so the fix here is deleting the block from
hosts/dev/allod-dev/home.nix, not rewriting it under the new option names. The neovim half is independent and can land on its own; allod/profiles#9 is held until the archetypes change exists, or split so the neovim part merges now. The framework keepslib.mkDefaulton its rendered entry until the profile copies are gone, so the deploy lock may take the two changes in either order. Tracking is allod/strategy#56.closed in favor of allod/strategy#56