Introduce a "user" module that can be interpolated everywhere.

Signed-off-by: Mariano Uvalle <juvallegarza@microsoft.com>
This commit is contained in:
Mariano Uvalle 2025-08-07 15:33:00 -07:00
parent c6aad094b0
commit 4c8cd258c1
5 changed files with 60 additions and 20 deletions

View file

@ -159,14 +159,15 @@
modules = [
./hosts/msft-mac/configuration.nix
home-manager.darwinModules.home-manager
{
({ config, ... }: {
home-manager.extraSpecialArgs = {
pkgs-unstable = pkgs-unstable_aarch64-darwin;
inherit (config) user;
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.jmug.imports = [ ./hosts/msft-mac/home.nix ];
}
})
];
};
};