Skip to content

Commit

Permalink
nixos/kexec: Replace meta.available checks
Browse files Browse the repository at this point in the history
This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
true by making them do unpredictable things.
  • Loading branch information
dezgeg committed Sep 28, 2018
1 parent f4dd2fe commit 599c4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/kexec.nix
@@ -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" =
Expand Down

0 comments on commit 599c4df

Please sign in to comment.