mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
096b7723c8
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=33730
18 lines
330 B
Nix
18 lines
330 B
Nix
{ 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.";
|
|
};
|
|
|
|
};
|
|
|
|
}
|