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,14 +91,11 @@
}; };
nixosConfigurations = let nixosConfigurations = let
baseHomeModule = { homeModule =
home-manager.useGlobalPkgs = true; baseHomeModule
home-manager.useUserPackages = true; // {
home-manager.extraSpecialArgs = {inherit inputs;}; home-manager.users.michael = import ./user/environments/nixos/home.nix;
}; };
homeModule = baseHomeModule // {
home-manager.users.michael = import ./user/environments/nixos/home.nix;
};
in { in {
kitchen = nixpkgs.lib.nixosSystem { kitchen = nixpkgs.lib.nixosSystem {
system = utils.lib.system.x86_64-linux; system = utils.lib.system.x86_64-linux;