diff --git a/.config/nix/darwin/configuration.nix b/.config/nix/darwin/configuration.nix index 6cff142..411d2a9 100644 --- a/.config/nix/darwin/configuration.nix +++ b/.config/nix/darwin/configuration.nix @@ -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 = { diff --git a/.config/nix/darwin/default.nix b/.config/nix/darwin/default.nix index 9bd08b3..d3b66f2 100644 --- a/.config/nix/darwin/default.nix +++ b/.config/nix/darwin/default.nix @@ -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;