summaryrefslogtreecommitdiff
path: root/modules/system
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/system
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/system')
-rw-r--r--modules/system/version.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/system/version.nix b/modules/system/version.nix
index 6801918..0824829 100644
--- a/modules/system/version.nix
+++ b/modules/system/version.nix
@@ -67,8 +67,8 @@ in
system.darwinRevision = mkOption {
internal = true;
- type = types.str;
- default = "master";
+ type = types.nullOr types.str;
+ default = null;
description = lib.mdDoc "The darwin git revision from which this configuration was built.";
};
@@ -92,7 +92,8 @@ in
system.nixpkgsRevision = mkOption {
internal = true;
- type = types.str;
+ type = types.nullOr types.str;
+ default = null;
description = lib.mdDoc "The nixpkgs git revision from which this configuration was built.";
};
};