Skip to content

Commit

Permalink
Fix nix flake check
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbaur committed Jan 5, 2024
1 parent 34a1205 commit 89a8e2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nixos-modules/image/boot/fit-image/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ in
};
};

config = lib.mkIf (cfg.bootVariant == "fit-image") {
config = lib.mkIf (cfg.enable && cfg.bootVariant == "fit-image") {
custom.image.bootFileCommands = ''
(
# source the setup file to get access to `substituteInPlace`
Expand Down
2 changes: 1 addition & 1 deletion nixos-modules/image/boot/uefi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let
systemdBoot = "${config.systemd.package}/lib/systemd/boot/efi/systemd-boot${pkgs.stdenv.hostPlatform.efiArch}.efi";
in
{
config = lib.mkIf (cfg.bootVariant == "uefi") {
config = lib.mkIf (cfg.enable && cfg.bootVariant == "uefi") {
assertions = [{
assertion = config.hardware.deviceTree.enable -> config.hardware.deviceTree.name != null;
message = "need to specify config.hardware.deviceTree.name";
Expand Down

0 comments on commit 89a8e2e

Please sign in to comment.