refactor(nix): Remove nixpkgs.hostPlatform
Should already covered by `inherit system`
This commit is contained in:
parent
2ef4e6f407
commit
1002f2806d
2 changed files with 2 additions and 7 deletions
|
@ -49,9 +49,6 @@
|
|||
# Set Git commit hash for darwin-version.
|
||||
system.configurationRevision = vars.rev or null;
|
||||
|
||||
# The platform the configuration will be used on.
|
||||
nixpkgs.hostPlatform = vars.arch;
|
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing.
|
||||
# $ darwin-rebuild changelog
|
||||
system = {
|
||||
|
|
|
@ -18,8 +18,7 @@ in
|
|||
# Lenovo ThinkPad L460; Intel Core i5-6300U
|
||||
"ThiccBook-Pro" =
|
||||
let
|
||||
vars.arch = "x86_64-darwin";
|
||||
inherit (systemConfig vars.arch) system pkgs;
|
||||
inherit (systemConfig "x86_64-darwin") system pkgs;
|
||||
in
|
||||
nix-darwin.lib.darwinSystem {
|
||||
inherit system;
|
||||
|
@ -37,8 +36,7 @@ in
|
|||
# Imaginary M1, just for reference
|
||||
MacBookProM1 =
|
||||
let
|
||||
vars.arch = "aarch64-darwin";
|
||||
inherit (systemConfig vars.arch) system pkgs;
|
||||
inherit (systemConfig "aarch64-darwin") system pkgs;
|
||||
in
|
||||
nix-darwin.lib.darwinSystem {
|
||||
inherit system;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue