mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 20:23:02 +00:00
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.";
|
||
|
};
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|