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:
parent
4648d6b51a
commit
248534bc35
7 changed files with 114 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ in
|
|||
{
|
||||
imports = [
|
||||
./modules/dev-tools.nix
|
||||
./users
|
||||
];
|
||||
|
||||
networking.hostName = "dev";
|
||||
|
|
|
|||
3
hosts/dev/users/default.nix
Normal file
3
hosts/dev/users/default.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
imports = [ ./dominik.nix ];
|
||||
}
|
||||
6
hosts/dev/users/dominik.nix
Normal file
6
hosts/dev/users/dominik.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
../utils/home-manager/claude-code/nixos.nix
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue