Skip to content

Commit

Permalink
flake.nix: expose pkgs and lib
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 authored Apr 16, 2024
1 parent 6e8feb6 commit e188c9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
systemLinuxInputs = systemCommonInputs // { nixos-hardware = nixos-hardware.nixosModules; homeInputs = homeCommonInputs; };

in
{
rec {
homeConfigurations.darwin-aarch64 = tomolib.mkHMConfig { systemType = "darwin"; systemArch = "aarch64"; args = homeDarwinInputs; };
homeConfigurations.darwin-x86_64 = tomolib.mkHMConfig { systemType = "darwin"; systemArch = "x86_64"; args = homeDarwinInputs; };
homeConfigurations.linux-aarch64 = tomolib.mkHMConfig { systemType = "linux"; systemArch = "aarch64"; args = homeDarwinInputs; };
Expand All @@ -72,6 +72,9 @@
];
};

packages = import ./pkgs { inherit pkgs; };
legacyPackages = packages // { lib = tomolib; };

devShells = tomolib.forAllSystems (pkgs: import ./lib/shells.nix { inherit pkgs home-manager; });
};
}

0 comments on commit e188c9e

Please sign in to comment.