fix: can't use nixpkgs.config and nixpkgs.pkgs at the same time, and other renames

This commit is contained in:
Ryan Yin
2025-04-19 21:21:27 +08:00
parent 9ade06b235
commit aaf499a52c
3 changed files with 6 additions and 8 deletions

View File

@@ -17,7 +17,11 @@ in
darwin-modules
++ [
({lib, ...}: {
nixpkgs.pkgs = import nixpkgs-darwin {inherit system;};
nixpkgs.pkgs = import nixpkgs-darwin {
inherit system; # refer the `system` parameter form outer scope recursively
# To use chrome, we need to allow the installation of non-free software
config.allowUnfree = true;
};
})
]
++ (