feat(dev): deploy claude-code config via systemd instead of home-manager

Home-manager fails on the dev microVM because nix-env --set needs
writable nix state dirs, but the microVM shares /nix/store read-only
via virtiofs.

Extract shared claude-code settings into settings.nix, add a NixOS
module (nixos.nix) that deploys the same files via a systemd oneshot
service with RequiresMountsFor to handle virtiofs mount ordering.
The nb host continues using home-manager unchanged.
This commit is contained in:
Dominik Polakovics Polakovics 2026-02-06 22:49:55 +01:00
parent 4648d6b51a
commit 248534bc35
7 changed files with 114 additions and 1 deletions

View file

@ -188,7 +188,9 @@ in
};
home-manager.users.dominik = { lib, pkgs, ... }: {
# imports = [ "${impermanence}/home-manager.nix" ];
imports = [
../utils/home-manager/claude-code
];
/* The home.stateVersion option does not have a default and must be set */
home.stateVersion = "25.05";
home.enableNixpkgsReleaseCheck = false;