mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-11 17:50:08 +01:00
feat: initial v3 rewrite
This commit is contained in:
commit
0952ab4145
32 changed files with 1457 additions and 0 deletions
24
lib/flakeModule.nix
Normal file
24
lib/flakeModule.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
flake-parts-lib,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.perSystem = flake-parts-lib.mkPerSystemOption (
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cilib = import ./. {inherit lib pkgs;};
|
||||
inherit (lib) types mkOption;
|
||||
in {
|
||||
options = {
|
||||
ci = mkOption {
|
||||
type = types.submodule cilib.modules.nixCiSubmodule;
|
||||
default = {};
|
||||
};
|
||||
};
|
||||
config.legacyPackages = config.ci.packages;
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue