main system parametrised for mbp

This commit is contained in:
Charles Sirois 2025-03-20 13:15:33 -04:00
parent b16ecacf38
commit df7bece6fb
2 changed files with 10 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{pkgs, inputs, ...}: {
{pkgs, inputs, system, ...}: {
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
@ -80,5 +80,5 @@
system.stateVersion = 4;
# The platform the configuration will be used on.
nixpkgs.hostPlatform = "x86_64-darwin";
nixpkgs.hostPlatform = system;
}

View file

@ -53,9 +53,16 @@
darwinConfigurations = {
"Charless-MacBook-Pro" = nix-darwin.lib.darwinSystem {
modules = [./devices/macbook/configuration.nix];
specialArgs = {inherit inputs;};
specialArgs = {
inherit inputs;
system = "x86_64-darwin";
};
};
"mbp-m4" = nix-darwin.lib.darwinSystem {
modules = [./devices/macbook/configuration.nix];
specialArgs = {inherit inputs;};
system = "aarch64-darwin";
};
};
};
}