I’m getting this error:
❯ nix build path:.\#darwinConfigurations.Endeavor.system --show-trace ~/.home-manager
error: The option `nixpkgs.checks' does not exist. Definition values:
- In `<unknown-file>':
{
x86_64-linux = {
tarball = <derivation /nix/store/jlnhsv1gc88ryi083ayk71xpamhrb2fy-nixpkgs-tarball-22.05pre20221031.1b47226.drv>;
};
}
… while evaluating the attribute 'config.system.build.toplevel'
at /nix/store/vvycl9jb2hy2fgqliw7qy3zq3y1hyicg-source/lib/modules.nix:363:9:
362| options = checked options;
363| config = checked (removeAttrs config [ "_module" ]);
| ^
364| _module = checked (config._module);
And I’m not sure how to debug. It appears to be caused by something with nix-darwin, but I’m not sure how to debug it. (I don’t have anything that is referencing x86_64-linux in my configs, so I’m not sure where that is coming from).
My flake:
{
description = "Home Manager configuration of Spott";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-22.05-darwin";
#nixpkgs-unstable.url = github:NixOS/nixpkgs/nixpkgs-unstable;
#nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
darwin = {
url = "github:lnl7/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, darwin, ... }:
let
system = "aarch64-darwin";
#pkgs = nixpkgs;
#pkgs = nixpkgs.legacyPackages.${system};
/* nixpkgsConfig = {
config = { allowUnfree = true; };
}; */
in {
/* homeConfigurations.spott = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home.nix
]; */
darwinConfigurations."Endeavor" = darwin.lib.darwinSystem {
inherit system;
modules = [
./darwin.nix
home-manager.darwinModules.home-manager
{
nixpkgs = nixpkgs;
# `home-manager` config
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.spott = import ./home.nix;
}
];
};
};
/* let
username = "spott";
email = "andrew.spott@submittable.com";
config = {
configuration = import ./home.nix;
inherit username;
stateVersion = "22.05";
};
# system = "aarch64-darwin":
# pkgs = nixpkgs.legacyPackages.${system};
in {
homeConfigurations."${username}" = home-manager.lib.homeManagerConfiguration (config // {system = "aarch64-darwin";});
#homeConfigurations.spott = home-manager.lib.homeManagerConfiguration
}; */
}