11.stylix/flake/dev/packages.nix
NAHO 1baa44cf8c
flake: infer default.nix import path (#1636)
Re-apply commit 0f93e58628 ("flake: infer default.nix import path
(#1544)") that was accidentally reverted in commit a5c1532ab8 ("flake:
partition dev inputs (#1289)").

Link: https://github.com/nix-community/stylix/pull/1636

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-07-08 22:56:08 +02:00

18 lines
487 B
Nix

{ lib, inputs, ... }:
{
perSystem =
{ pkgs, config, ... }:
{
# Build all packages with 'nix flake check' instead of only verifying they
# are derivations.
checks = config.packages;
# Testbeds are virtual machines based on NixOS, therefore they are
# only available for Linux systems.
packages = lib.mkIf pkgs.stdenv.hostPlatform.isLinux (
import ../../stylix/testbed {
inherit pkgs inputs lib;
}
);
};
}