mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-10 03:13:36 +02:00
feat: new aarch64-darwin host - fern
This commit is contained in:
@@ -1,17 +1,28 @@
|
||||
args:
|
||||
with args; let
|
||||
macosSystem = import ../lib/macosSystem.nix;
|
||||
system = x64_darwin;
|
||||
base_args = {
|
||||
inherit nix-darwin home-manager system;
|
||||
x64_args = {
|
||||
inherit nix-darwin home-manager;
|
||||
system = x64_darwin;
|
||||
specialArgs = x64_darwin_specialArgs;
|
||||
nixpkgs = nixpkgs-darwin;
|
||||
};
|
||||
aarch64_args = {
|
||||
inherit nix-darwin home-manager;
|
||||
system = aarch64_darwin;
|
||||
specialArgs = aarch64_darwin_specialArgs;
|
||||
nixpkgs = nixpkgs-darwin;
|
||||
};
|
||||
|
||||
in {
|
||||
# macOS's configuration, for work.
|
||||
darwinConfigurations = {
|
||||
harmonica =
|
||||
macosSystem (base_args
|
||||
macosSystem (x64_args
|
||||
// darwin_harmonica_modules);
|
||||
|
||||
fern =
|
||||
macosSystem (aarch64_args
|
||||
// darwin_fern_modules);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -99,4 +99,14 @@
|
||||
];
|
||||
home-module = import ../home/darwin;
|
||||
};
|
||||
darwin_fern_modules = {
|
||||
darwin-modules = [
|
||||
../hosts/fern
|
||||
|
||||
../modules/darwin
|
||||
../secrets/darwin.nix
|
||||
];
|
||||
home-module = import ../home/darwin;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user