nixos/kexec: Replace meta.available checks

This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
true by making them do unpredictable things.
This commit is contained in:
Tuomas Tynkkynen 2018-08-29 01:21:33 +03:00
parent f4dd2fed7f
commit 599c4df46a

View File

@ -1,7 +1,7 @@
{ pkgs, lib, ... }:
{
config = lib.mkIf (pkgs.kexectools.meta.available) {
config = lib.mkIf (lib.any (lib.meta.platformMatch pkgs.stdenv.hostPlatform) pkgs.kexectools.meta.platform) {
environment.systemPackages = [ pkgs.kexectools ];
systemd.services."prepare-kexec" =