11.stylix/flake/packages.nix
NAHO 0f93e58628
flake: infer default.nix import path (#1544)
Fixes: c765b15fc3 ("stylix: move testbed to a dedicated directory")

Reviewed-by: awwpotato <awwpotato@voidq.com>
2025-06-25 18:49:46 -07:00

33 lines
940 B
Nix

{ lib, inputs, ... }:
{
perSystem =
{ pkgs, config, ... }:
{
# Build all packages with 'nix flake check' instead of only verifying they
# are derivations.
checks = config.packages;
# Make 'nix run .#doc' serve the documentation site
apps.doc.program = config.packages.serve-docs;
packages = lib.mkMerge [
# Testbeds are virtual machines based on NixOS, therefore they are
# only available for Linux systems.
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux (
import ../stylix/testbed {
inherit pkgs inputs lib;
}
))
{
doc = pkgs.callPackage ../doc {
inherit (inputs) self;
};
serve-docs = pkgs.callPackage ../doc/server.nix {
inherit (config.packages) doc;
};
palette-generator = pkgs.callPackage ../palette-generator { };
}
];
};
}