11.stylix/flake/dev/packages.nix
awwpotato a5c1532ab8
flake: partition dev inputs (#1289)
Link: https://github.com/nix-community/stylix/pull/1289

Reviewed-by: Daniel Thwaites <danth@danth.me>
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-06 23:56:44 +02:00

18 lines
499 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/default.nix {
inherit pkgs inputs lib;
}
);
};
}