1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2025-03-14 20:56:48 +00:00
flake-parts/template/multi-module/hello/flake-module.nix
Dusk Banks 1e37f1e031 lib/mkFlake: Document _file infinite recursion
This infinite recursion first appeared in
2cde01ee43.
2023-08-20 05:22:44 -07:00

17 lines
559 B
Nix

# Definitions can be imported from a separate file like this one
{ config, lib, inputs, ... }: {
perSystem = { config, inputs', pkgs, ... }: {
# Definitions like this are entirely equivalent to the ones
# you may have directly in flake.nix.
packages.hello = pkgs.hello;
};
flake = {
nixosModules.hello = { pkgs, ... }: {
environment.systemPackages = [
# or inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system}.hello
config.flake.packages.${pkgs.stdenv.hostPlatform.system}.hello
];
};
};
}