feat: home-manager entry point and per-user shims

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-06-28 06:48:38 +02:00
commit 7c9ce3fe10
3 changed files with 928 additions and 0 deletions

View file

@ -0,0 +1,16 @@
# users/user/home-manager.nix
#
# Shim that forwards to the top-level home.nix via the module-system
# `imports` mechanism. The user name "user" matches settings.user in
# settings.nix (a placeholder — a real deployment would edit
# settings.nix and rename this dir to users/<real-username>/).
#
# home.nix expects `settings` as a function arg. mksystem passes it
# via `extraHmArgs = { inherit settings; }` from flake.nix, which
# becomes part of home-manager.extraSpecialArgs and reaches home.nix
# transparently through the imports mechanism.
{ ... }:
{
imports = [ ../../home.nix ];
}