mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-20 08:34:28 +01:00
fix: darwin fern
This commit is contained in:
@@ -1,27 +1,35 @@
|
||||
args:
|
||||
with args; let
|
||||
with args;
|
||||
with allSystemAttrs; let
|
||||
lib = nixpkgs.lib;
|
||||
macosSystem = import ../lib/macosSystem.nix;
|
||||
x64_args = {
|
||||
base_args = {
|
||||
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;
|
||||
};
|
||||
in {
|
||||
# macOS's configuration
|
||||
darwinConfigurations = {
|
||||
harmonica =
|
||||
macosSystem (x64_args
|
||||
// darwin_harmonica_modules);
|
||||
harmonica = macosSystem (
|
||||
lib.attrsets.mergeAttrsList [
|
||||
base_args
|
||||
darwin_harmonica_modules
|
||||
{
|
||||
system = allSystemAttrs.x64_darwin;
|
||||
specialArgs = allSystemSpecialArgs.x64_darwin;
|
||||
}
|
||||
]
|
||||
);
|
||||
|
||||
fern =
|
||||
macosSystem (aarch64_args
|
||||
// darwin_fern_modules);
|
||||
fern = macosSystem (
|
||||
lib.attrsets.mergeAttrsList [
|
||||
base_args
|
||||
darwin_fern_modules
|
||||
{
|
||||
system = aarch64_darwin;
|
||||
specialArgs = allSystemSpecialArgs.aarch64_darwin;
|
||||
}
|
||||
]
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user