fix: add baseHomeModule to outer scope for mac config

This commit is contained in:
Michael Thomas 2024-06-08 02:17:17 -04:00
parent 4f3c9ee48f
commit 063cf3e619

View File

@ -69,6 +69,12 @@
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
./modules ./modules
]; ];
baseHomeModule = {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit inputs;};
};
in { in {
# Your custom packages # Your custom packages
# Accessible through 'nix build', 'nix shell', etc # Accessible through 'nix build', 'nix shell', etc
@ -85,12 +91,9 @@
}; };
nixosConfigurations = let nixosConfigurations = let
baseHomeModule = { homeModule =
home-manager.useGlobalPkgs = true; baseHomeModule
home-manager.useUserPackages = true; // {
home-manager.extraSpecialArgs = {inherit inputs;};
};
homeModule = baseHomeModule // {
home-manager.users.michael = import ./user/environments/nixos/home.nix; home-manager.users.michael = import ./user/environments/nixos/home.nix;
}; };
in { in {