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.
|
# Set Git commit hash for darwin-version.
|
||||||
system.configurationRevision = vars.rev or null;
|
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.
|
# Used for backwards compatibility, please read the changelog before changing.
|
||||||
# $ darwin-rebuild changelog
|
# $ darwin-rebuild changelog
|
||||||
system = {
|
system = {
|
||||||
|
|
|
@ -18,8 +18,7 @@ in
|
||||||
# Lenovo ThinkPad L460; Intel Core i5-6300U
|
# Lenovo ThinkPad L460; Intel Core i5-6300U
|
||||||
"ThiccBook-Pro" =
|
"ThiccBook-Pro" =
|
||||||
let
|
let
|
||||||
vars.arch = "x86_64-darwin";
|
inherit (systemConfig "x86_64-darwin") system pkgs;
|
||||||
inherit (systemConfig vars.arch) system pkgs;
|
|
||||||
in
|
in
|
||||||
nix-darwin.lib.darwinSystem {
|
nix-darwin.lib.darwinSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
@ -37,8 +36,7 @@ in
|
||||||
# Imaginary M1, just for reference
|
# Imaginary M1, just for reference
|
||||||
MacBookProM1 =
|
MacBookProM1 =
|
||||||
let
|
let
|
||||||
vars.arch = "aarch64-darwin";
|
inherit (systemConfig "aarch64-darwin") system pkgs;
|
||||||
inherit (systemConfig vars.arch) system pkgs;
|
|
||||||
in
|
in
|
||||||
nix-darwin.lib.darwinSystem {
|
nix-darwin.lib.darwinSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue