Files
faumaray 079cceb554 update
Signed-off-by: faumaray <faumaray@gmail.com>
2026-10-29 16:02:14 +03:00

34 lines
760 B
Nix

# The per-system package set (our overlay, unfree allowed) and the repository's
# own tools as flake packages. They are checks too, so plain `nix flake check`
# builds them (writeShellApplication runs shellcheck).
{ config, inputs, ... }:
let
overlay = config.flake.overlays.default;
in
{
perSystem =
{ system, pkgs, ... }:
let
tools = {
inherit (pkgs)
install-system
create-keys
set-password
secret-from-file
switch-system
dev-shell
;
};
in
{
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ overlay ];
config.allowUnfree = true;
};
packages = tools;
checks = tools;
};
}