From 063cf3e61991807ad4491dc1992e80019278eaa3 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Sat, 8 Jun 2024 02:17:17 -0400 Subject: [PATCH] fix: add baseHomeModule to outer scope for mac config --- flake.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index dc12d21..cdd4ef1 100644 --- a/flake.nix +++ b/flake.nix @@ -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;