summaryrefslogtreecommitdiff
path: root/modules/documentation
diff options
context:
space:
mode:
authorEmily <vcs@emily.moe>2023-07-07 09:02:38 +0100
committerEmily <vcs@emily.moe>2023-07-09 07:26:00 +0100
commit72b7e8668c24950b8300ffe3d135dad1ae72a4f5 (patch)
treed2afd23e4d9a287018302065b56ecfaae998e71c /modules/documentation
parente25eeff158ceb415079e38f6e78a470c5664fa2f (diff)
version: default Git revision options to `null`
This allows for more uniform handling in the documentation generator, and avoids lying about the Git reference being `master` internally.
Diffstat (limited to 'modules/documentation')
-rw-r--r--modules/documentation/default.nix12
1 files changed, 2 insertions, 10 deletions
diff --git a/modules/documentation/default.nix b/modules/documentation/default.nix
index 25165c9..2f3bb9a 100644
--- a/modules/documentation/default.nix
+++ b/modules/documentation/default.nix
@@ -1,4 +1,4 @@
-toplevel@{ config, lib, pkgs, baseModules, modules, ... }:
+{ config, lib, pkgs, baseModules, modules, ... }:
with lib;
@@ -25,15 +25,7 @@ let
inherit pkgs config;
version = config.system.darwinVersion;
revision = config.system.darwinRevision;
- nixpkgsRevision =
- if toplevel.options.system.nixpkgsRevision.isDefined
- then config.system.nixpkgsRevision
-
- # If user does not use flakes and does not add rev to nixpkgs, we don't
- # know which revision or even branch they're on. In this case we still want
- # to link somewhere, so we hope that master hasn't changed too much.
- else "master";
-
+ inherit (config.system) nixpkgsRevision;
options =
let
scrubbedEval = evalModules {