summaryrefslogtreecommitdiffstats
path: root/nixos/modules/installer/tools/tools.nix
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-07-12 00:14:53 +0200
committerGitHub <noreply@github.com>2023-07-12 00:14:53 +0200
commitf57af4cd1e7c44853e415d263dd476d838f3d880 (patch)
tree8a1ad92e88364a772010d27fa45401d5a76ec0dd /nixos/modules/installer/tools/tools.nix
parentc0ee74baac4e79aa685137eabb34dbe3f2826249 (diff)
parent49d0af0f1eb2c239ce98cb4495b2492c08d3f586 (diff)
Merge pull request #237442 from SuperSandro2000/nixos-option
nixos-option: update to nix 2.15
Diffstat (limited to 'nixos/modules/installer/tools/tools.nix')
-rw-r--r--nixos/modules/installer/tools/tools.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/nixos/modules/installer/tools/tools.nix b/nixos/modules/installer/tools/tools.nix
index 1e36d10b391f..54b0f81ee780 100644
--- a/nixos/modules/installer/tools/tools.nix
+++ b/nixos/modules/installer/tools/tools.nix
@@ -42,10 +42,7 @@ let
xserverEnabled = config.services.xserver.enable;
};
- nixos-option =
- if lib.versionAtLeast (lib.getVersion config.nix.package) "2.4pre"
- then null
- else pkgs.nixos-option;
+ inherit (pkgs) nixos-option;
nixos-version = makeProg {
name = "nixos-version";
@@ -232,9 +229,10 @@ in
nixos-install
nixos-rebuild
nixos-generate-config
+ nixos-option
nixos-version
nixos-enter
- ] ++ lib.optional (nixos-option != null) nixos-option;
+ ];
documentation.man.man-db.skipPackages = [ nixos-version ];