diff options
author | Jan Malakhovski <oxij@oxij.org> | 2016-08-01 00:00:00 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2018-02-18 12:56:30 +0000 |
commit | 8200e08b0b553983cae0d505c51494061a98f2c0 (patch) | |
tree | b95a1737f8ce3eb1e8edff711a2ec9e753059b55 /nixos/modules/misc/version.nix | |
parent | e1782e342f4c2191b9eeb5ddd5a5b36eafb9fed9 (diff) | |
download | nixpkgs-8200e08b0b553983cae0d505c51494061a98f2c0.tar nixpkgs-8200e08b0b553983cae0d505c51494061a98f2c0.tar.gz nixpkgs-8200e08b0b553983cae0d505c51494061a98f2c0.tar.bz2 nixpkgs-8200e08b0b553983cae0d505c51494061a98f2c0.tar.lz nixpkgs-8200e08b0b553983cae0d505c51494061a98f2c0.tar.xz nixpkgs-8200e08b0b553983cae0d505c51494061a98f2c0.tar.zst nixpkgs-8200e08b0b553983cae0d505c51494061a98f2c0.zip |
nixos: move nixosLabel to its own module
Diffstat (limited to 'nixos/modules/misc/version.nix')
-rw-r--r-- | nixos/modules/misc/version.nix | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/nixos/modules/misc/version.nix b/nixos/modules/misc/version.nix index 48cde2ebbc8..83427d26fff 100644 --- a/nixos/modules/misc/version.nix +++ b/nixos/modules/misc/version.nix @@ -32,14 +32,6 @@ in ''; }; - nixosLabel = mkOption { - type = types.str; - description = '' - Label to be used in the names of generated outputs and boot - labels. - ''; - }; - nixosVersion = mkOption { internal = true; type = types.str; @@ -89,7 +81,6 @@ in system = { # These defaults are set here rather than up there so that # changing them would not rebuild the manual - nixosLabel = mkDefault cfg.nixosVersion; nixosVersion = mkDefault (cfg.nixosRelease + cfg.nixosVersionSuffix); nixosRevision = mkIf (pathIsDirectory gitRepo) (mkDefault gitCommitId); nixosVersionSuffix = mkIf (pathIsDirectory gitRepo) (mkDefault (".git." + gitCommitId)); |