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; nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -80,5 +80,5 @@
system.stateVersion = 4; system.stateVersion = 4;
# The platform the configuration will be used on. # The platform the configuration will be used on.
nixpkgs.hostPlatform = "x86_64-darwin"; nixpkgs.hostPlatform = system;
} }

View file

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