summaryrefslogtreecommitdiff
path: root/modules/system/version.nix
AgeCommit message (Collapse)Author
2025-01-11version: implement nix-darwin release versionsEmily
2024-09-12version: make `system.stateVersion` mandatoryEmily
When testing the Sequoia UID change, I discovered that @mjm didn’t have `system.stateVersion` set; I suspect this is not too uncommon. Let’s make it required now, like NixOS is trying to, to improve our backwards‐compatibility story in anticipation of starting to cut release branches.
2024-09-11{ids,checks}: update for new builder UID/GID valuesEmily
2024-04-19treewide: remove lib.mdDocWeijia Wang
2023-07-14Add `darwin-version` commandMichael Hoang
2023-07-09version: rewrite Git revision logicEmily
We trust the version information from `nixpkgs.source` when `pkgs` was constructed by the `nixpkgs` module or `nixpkgs.source` was explicitly set by the configuration. Otherwise, we rely on Nixpkgs to report its own version, which handles the same cases as the old logic and opens the door to Nixpkgs automatically reporting the correct revision when using flakes.
2023-07-09version: default Git revision options to `null`Emily
This allows for more uniform handling in the documentation generator, and avoids lying about the Git reference being `master` internally.
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
2020-10-21add flake versionsDaiderd Jordan
2020-01-15Remove trailing slash from pathSebastian Wild
A change of `commitIdFromGitRepo` in nixpkgs/lib/sources.nix resulted in the error message "attribute '.git' missing at nixpkgs/lib/sources.nix:7:32" when executing darwin-rebuils switch. The commit with the change is https://github.com/NixOS/nixpkgs/commit/c9214c394b248e1f26e45dbe1be2bd82363af3a6 Removing the trailing slash resolves the error.
2019-06-05version: fix descriptionDaiderd Jordan
2019-05-04version: add default darwinRevisionDaiderd Jordan
There's no channel for darwin so this can be unavailable if a tarball or shallow clone is used.
2019-05-04version: include darwin metadata in system labelDaiderd Jordan
This makes it possible to trace back what version of both darwin and nixpkgs the system was built with.
2019-05-01nix: make nix.nixPath merge by defaultDaiderd Jordan
Since named entries can be overridden now based on ordering now merging is only a problem for removing one of the default search paths, in which case a higher priority eg. mkForce can be used. { nix.nixPath = [{ darwin-config = "/darwin.nix"; }]; } Will result in [ "darwin-config=/darwin.nix" "/nix/var/nix/profiles/per-user/root/channels" "$HOME/.nix-defexpr/channels" ] Fixes #137
2019-01-19system-version: get version information from channelsAndrew Childs
2018-03-29nix: use pkgs.nix by default instead of the default profileDaiderd Jordan
This fixes version detection for 2.0.
2017-12-03improve git revision detectionDaiderd Jordan
lib.pathIsDirectory doesn't follow symlinks causing the git revision detection to fail if NIX_PATH points to a symlink.
2017-10-01system-version: add assertioon for stateVersionDaiderd Jordan
2017-10-01system-version: add system.stateVersion optionDaiderd Jordan