currently activated NixOS. This is "0.1pre-svn" when built from a SVN tree, but contains the actual revision when installed from the NixOS channel or from the ISO. svn path=/nixos/trunk/; revision=33730wip/yesman
parent
871b4bd43a
commit
096b7723c8
@ -0,0 +1,18 @@ |
||||
{ config, pkgs, ... }: |
||||
|
||||
with pkgs.lib; |
||||
|
||||
{ |
||||
|
||||
options = { |
||||
|
||||
system.nixosVersion = mkOption { |
||||
default = |
||||
builtins.readFile ../../.version |
||||
+ (if builtins.pathExists ../../.version-suffix then builtins.readFile ../../.version-suffix else "pre-svn"); |
||||
description = "NixOS version."; |
||||
}; |
||||
|
||||
}; |
||||
|
||||
} |
Loading…
Reference in new issue