refactor(nix): Remove nixpkgs.hostPlatform

Should already covered by `inherit system`
This commit is contained in:
Ahmad Ansori Palembani 2024-07-13 09:38:55 +07:00
parent 2ef4e6f407
commit 1002f2806d
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 2 additions and 7 deletions

View file

@ -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 = {

View file

@ -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;