feat(nix): Preparing common packages

This commit is contained in:
Ahmad Ansori Palembani 2024-10-16 08:28:06 +07:00
parent 6a5c04a1e4
commit 9147da1a71
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
5 changed files with 18 additions and 7 deletions

View file

@ -25,6 +25,7 @@ let
config.allowUnfree = true;
};
};
mkCommon = import ../mkCommon.nix;
in
{
# Host list
@ -36,10 +37,11 @@ in
"ThiccBook-Pro" =
let
inherit (systemConfig "x86_64-darwin") system pkgs;
common = (mkCommon pkgs);
in
nix-darwin.lib.darwinSystem {
inherit system;
specialArgs = { inherit inputs pkgs home-manager vars; };
specialArgs = { inherit inputs pkgs home-manager vars common; };
modules = [
./configuration.nix
home-manager.darwinModules.home-manager
@ -54,6 +56,7 @@ in
MacBookProM1 =
let
inherit (systemConfig "aarch64-darwin") system pkgs;
vars.common = (mkCommon pkgs);
in
nix-darwin.lib.darwinSystem {
inherit system;