mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 09:28:27 +02:00
fix: darwin fern
This commit is contained in:
@@ -1,27 +1,35 @@
|
|||||||
args:
|
args:
|
||||||
with args; let
|
with args;
|
||||||
|
with allSystemAttrs; let
|
||||||
|
lib = nixpkgs.lib;
|
||||||
macosSystem = import ../lib/macosSystem.nix;
|
macosSystem = import ../lib/macosSystem.nix;
|
||||||
x64_args = {
|
base_args = {
|
||||||
inherit nix-darwin home-manager;
|
inherit nix-darwin home-manager;
|
||||||
system = allSystemAttrs.x64_darwin;
|
|
||||||
specialArgs = allSystemSpecialArgs.x64_darwin;
|
|
||||||
nixpkgs = nixpkgs-darwin;
|
|
||||||
};
|
|
||||||
aarch64_args = {
|
|
||||||
inherit nix-darwin home-manager;
|
|
||||||
system = aarch64_darwin;
|
|
||||||
specialArgs = aarch64_darwin_specialArgs;
|
|
||||||
nixpkgs = nixpkgs-darwin;
|
nixpkgs = nixpkgs-darwin;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
# macOS's configuration
|
# macOS's configuration
|
||||||
darwinConfigurations = {
|
darwinConfigurations = {
|
||||||
harmonica =
|
harmonica = macosSystem (
|
||||||
macosSystem (x64_args
|
lib.attrsets.mergeAttrsList [
|
||||||
// darwin_harmonica_modules);
|
base_args
|
||||||
|
darwin_harmonica_modules
|
||||||
|
{
|
||||||
|
system = allSystemAttrs.x64_darwin;
|
||||||
|
specialArgs = allSystemSpecialArgs.x64_darwin;
|
||||||
|
}
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
fern =
|
fern = macosSystem (
|
||||||
macosSystem (aarch64_args
|
lib.attrsets.mergeAttrsList [
|
||||||
// darwin_fern_modules);
|
base_args
|
||||||
|
darwin_fern_modules
|
||||||
|
{
|
||||||
|
system = aarch64_darwin;
|
||||||
|
specialArgs = allSystemSpecialArgs.aarch64_darwin;
|
||||||
|
}
|
||||||
|
]
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user