mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-26 19:31:31 +01:00
36 lines
761 B
Nix
36 lines
761 B
Nix
args:
|
|
with args;
|
|
with allSystemAttrs; let
|
|
inherit (nixpkgs) lib;
|
|
macosSystem = import ../lib/macosSystem.nix;
|
|
base_args = {
|
|
inherit nix-darwin home-manager;
|
|
nixpkgs = nixpkgs-darwin;
|
|
};
|
|
in {
|
|
# macOS's configuration
|
|
darwinConfigurations = {
|
|
harmonica = macosSystem (
|
|
lib.attrsets.mergeAttrsList [
|
|
base_args
|
|
darwin_harmonica_modules
|
|
{
|
|
system = allSystemAttrs.x64_darwin;
|
|
specialArgs = allSystemSpecialArgs.x64_darwin;
|
|
}
|
|
]
|
|
);
|
|
|
|
fern = macosSystem (
|
|
lib.attrsets.mergeAttrsList [
|
|
base_args
|
|
darwin_fern_modules
|
|
{
|
|
system = aarch64_darwin;
|
|
specialArgs = allSystemSpecialArgs.aarch64_darwin;
|
|
}
|
|
]
|
|
);
|
|
};
|
|
}
|