From 58f2d61be4c55c7cf7bdbb12f3fed6794e7481b5 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 20 May 2026 13:56:10 +0100 Subject: fix(nix): parameterize dotfiles path per profile; rename dockerfile LSP - common.nix hardcoded the runtime dotfiles checkout to ~/.local/share/dotfiles, which is correct for the remote-dev VM but not the Arch host (where the canonical clone lives at ~/dotfiles). ssh activation was failing with 'cannot stat /home/sommerfeld/.local/share/dotfiles/private_dot_ssh/config' on every host nix-switch. Promote the path to a typed option (config.my.dotfilesPath) and set it from each profile: nix/host.nix -> $HOME/dotfiles nix/vm.nix -> $HOME/.local/share/dotfiles common.nix now wraps its config in 'config = { ... }' so the options can sit alongside. - dockerfile-language-server-nodejs was renamed in nixpkgs to dockerfile-language-server; pick up the new name to silence the evaluation warning (the rename will eventually become a hard error). --- nix/vm.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nix/vm.nix') diff --git a/nix/vm.nix b/nix/vm.nix index 7445b7b..257436e 100644 --- a/nix/vm.nix +++ b/nix/vm.nix @@ -10,6 +10,9 @@ home.username = builtins.getEnv "USER"; home.homeDirectory = builtins.getEnv "HOME"; + # Remote-dev VM clones the dotfiles tree under XDG_DATA_HOME. + my.dotfilesPath = "${builtins.getEnv "HOME"}/.local/share/dotfiles"; + home.sessionVariables = { # Ubuntu 20.04-derived hosts still default to cgroups v1; podman 5 # warns on every invocation. Flipping to v2 is a host-level reboot -- cgit v1.3.1