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
./modules
];
baseHomeModule = {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit inputs;};
};
in {
# Your custom packages
# Accessible through 'nix build', 'nix shell', etc
@ -85,14 +91,11 @@
};
nixosConfigurations = let
baseHomeModule = {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = {inherit inputs;};
};
homeModule = baseHomeModule // {
home-manager.users.michael = import ./user/environments/nixos/home.nix;
};
homeModule =
baseHomeModule
// {
home-manager.users.michael = import ./user/environments/nixos/home.nix;
};
in {
kitchen = nixpkgs.lib.nixosSystem {
system = utils.lib.system.x86_64-linux;