main system parametrised for mbp
This commit is contained in:
parent
b16ecacf38
commit
df7bece6fb
2 changed files with 10 additions and 3 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,9 +53,16 @@
|
||||||
darwinConfigurations = {
|
darwinConfigurations = {
|
||||||
"Charless-MacBook-Pro" = nix-darwin.lib.darwinSystem {
|
"Charless-MacBook-Pro" = 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 = "x86_64-darwin";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"mbp-m4" = nix-darwin.lib.darwinSystem {
|
||||||
|
modules = [./devices/macbook/configuration.nix];
|
||||||
|
specialArgs = {inherit inputs;};
|
||||||
|
system = "aarch64-darwin";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue