summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/generic.nix
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-10-29 01:15:05 -0700
committerJonathan Ringer <jonringer@users.noreply.github.com>2020-10-30 09:40:12 -0700
commite6db435973160591fe7348876a5567c729495175 (patch)
tree14414ac75edc06b16cbc0132d63611c984496d12 /pkgs/os-specific/linux/kernel/generic.nix
parentf89356b202fddf39ba323a1854041c5bdcc05602 (diff)
downloadnixpkgs-e6db435973160591fe7348876a5567c729495175.tar
nixpkgs-e6db435973160591fe7348876a5567c729495175.tar.gz
nixpkgs-e6db435973160591fe7348876a5567c729495175.tar.bz2
nixpkgs-e6db435973160591fe7348876a5567c729495175.tar.lz
nixpkgs-e6db435973160591fe7348876a5567c729495175.tar.xz
nixpkgs-e6db435973160591fe7348876a5567c729495175.tar.zst
nixpkgs-e6db435973160591fe7348876a5567c729495175.zip
linux: add flavor metadata
Diffstat (limited to 'pkgs/os-specific/linux/kernel/generic.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/generic.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix
index cab11cc87ae..dd3050a93ee 100644
--- a/pkgs/os-specific/linux/kernel/generic.nix
+++ b/pkgs/os-specific/linux/kernel/generic.nix
@@ -45,6 +45,11 @@
                        stdenv.hostPlatform != stdenv.buildPlatform
 , extraMeta ? {}
 
+, isXen      ? features.xen_dom0 or false
+, isZen      ? false
+, isLibre    ? false
+, isHardened ? false
+
 # easy overrides to stdenv.hostPlatform.platform members
 , autoModules ? stdenv.hostPlatform.platform.kernelAutoModules
 , preferBuiltin ? stdenv.hostPlatform.platform.kernelPreferBuiltin or false
@@ -175,7 +180,9 @@ let
 
   passthru = {
     features = kernelFeatures;
-    inherit commonStructuredConfig;
+    inherit commonStructuredConfig isXen isZen isHardened isLibre;
+    kernelOlder = lib.versionOlder version;
+    kernelAtLeast = lib.versionAtLeast version;
     passthru = kernel.passthru // (removeAttrs passthru [ "passthru" ]);
   };