mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00: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
19 lines
330 B
Nix
19 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.";
|
|
};
|
|
|
|
};
|
|
|
|
}
|