summaryrefslogtreecommitdiff
path: root/modules/nix/nixpkgs.nix
AgeCommit message (Collapse)Author
2024-06-13treewide: remove shims for Nixpkgs ≤ 23.05Emily
These deprecated versions were already made unsupported by #932.
2024-04-19treewide: remove lib.mdDocWeijia Wang
2023-07-08nixpkgs: rebase module on latest NixOSEmily
This is based on the current NixOS `nixpkgs` module, adjusted for the nix-darwin context and without adding the options due for deprecation in NixOS. This gives us the ability to set the package set modularly through `nixpkgs.pkgs` and builds up infrastructure for handling user-specified Nixpkgs instantiations more robustly. The cross-compilation options are currently not very useful due to even Darwin->Darwin cross-compilation not being wholly functional yet, but it looks feasible to build an `aarch64-darwin` system from `x86_64-darwin` with some patching and it should be possible to make cross-compilation more widely supported after the Darwin SDK situation in Nixpkgs improves. One casualty is the error for setting `nixpkgs.*` options when overriding the package set. That could be ported over to this new scheme, but it'd increase divergence with the NixOS module and reduce cross-compatibility of configurations, so I lean towards adding it upstream to NixOS if anything. (But if people want to keep it I can add it back.)
2023-06-24treewide: convert all option docs to MarkdownEmily
This process was automated by [my fork of `nix-doc-munge`]; thanks to @pennae for writing this tool! It automatically checks that the resulting documentation doesn't change, although my fork loosens this a little to ignore some irrelevant whitespace and typographical differences. As of this commit there is no DocBook remaining in the options documentation. You can play along at home if you want to reproduce this commit: $ NIX_PATH=nixpkgs=flake:nixpkgs/c1bca7fe84c646cfd4ebf3482c0e6317a0b13f22 \ nix shell nixpkgs#coreutils \ -c find . -name '*.nix' \ -exec nix run github:emilazy/nix-doc-munge/0a7190f600027bf7baf6cb7139e4d69ac2f51062 \ {} + [my fork of `nix-doc-munge`]: https://github.com/emilazy/nix-doc-munge
2022-02-04eval-config: Support passing in `pkgs`Michael Hoang
This is useful for flake users as they will usually already have an instantiated Nixpkgs e.g. let pkgs = import nixpkgs { config.allowUnfree = true; overlays = [ ... ]; } in darwin.lib.darwinSystem { inherit pkgs; } This change makes `nix-darwin` match the behaviour of NixOS and `home-manager`.
2022-01-04nixpkgs: Allow functors.John Soo
Replace builtins.isFunction with lib.isFunction, which allows functors.
2021-10-23add forward compatibility for literalExample deprecationDaiderd Jordan
Fixes #367
2018-05-04nixpkgs: replace usage of deprecated traceValIfNotDaiderd Jordan
2018-01-06nixpkgs: add support for overlaysDaiderd Jordan
2017-01-15make nixpkgs and system overridable for ./release.nixDaiderd Jordan
2016-12-11add nix-tools to environment.systemPackages by defaultDaiderd Jordan
2016-12-11add nixpkgs.config optionDaiderd Jordan