modules: move clan module to flake.modules.clan.default
This commit is contained in:
@@ -9,8 +9,6 @@ clan-core:
|
|||||||
let
|
let
|
||||||
inherit (lib) types;
|
inherit (lib) types;
|
||||||
|
|
||||||
clanLib = clan-core.clanLib;
|
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Backwards compatibility
|
# Backwards compatibility
|
||||||
@@ -37,7 +35,7 @@ in
|
|||||||
# inventoryInterface = {};
|
# inventoryInterface = {};
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
clanLib.module
|
clan-core.modules.clan.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -170,6 +170,7 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../test/container-test-driver/driver-module.nix
|
../test/container-test-driver/driver-module.nix
|
||||||
|
|
||||||
];
|
];
|
||||||
options = {
|
options = {
|
||||||
clanSettings = mkOption {
|
clanSettings = mkOption {
|
||||||
@@ -197,7 +198,7 @@ in
|
|||||||
self = throw "set clan.directory in the test";
|
self = throw "set clan.directory in the test";
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
clanLib.module
|
clan-core.modules.clan.default
|
||||||
{
|
{
|
||||||
_prefix = [
|
_prefix = [
|
||||||
"checks"
|
"checks"
|
||||||
|
|||||||
@@ -19,15 +19,6 @@ lib.fix (
|
|||||||
);
|
);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
module = {
|
|
||||||
_class = "clan";
|
|
||||||
_module.args = {
|
|
||||||
inherit clanLib;
|
|
||||||
};
|
|
||||||
imports = [
|
|
||||||
./modules/clan/default.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
inherit (buildClanLib)
|
inherit (buildClanLib)
|
||||||
buildClan
|
buildClan
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
|
{ clan-core }:
|
||||||
{
|
{
|
||||||
|
_class = "clan";
|
||||||
|
_module.args = {
|
||||||
|
inherit clan-core;
|
||||||
|
inherit (clan-core) clanLib;
|
||||||
|
};
|
||||||
imports = [
|
imports = [
|
||||||
./module.nix
|
./module.nix
|
||||||
./interface.nix
|
./interface.nix
|
||||||
|
|||||||
4
lib/modules/clan/flake-module.nix
Normal file
4
lib/modules/clan/flake-module.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{ self, lib, ... }:
|
||||||
|
{
|
||||||
|
flake.modules.clan.default = lib.modules.importApply ./default.nix { clan-core = self; };
|
||||||
|
}
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
clanLib,
|
clan-core,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
eval = lib.evalModules {
|
eval = lib.evalModules {
|
||||||
modules = [
|
modules = [
|
||||||
clanLib.module
|
clan-core.modules.clan.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
evalDocs = pkgs.nixosOptionsDoc {
|
evalDocs = pkgs.nixosOptionsDoc {
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ let
|
|||||||
);
|
);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
./clan/flake-module.nix
|
||||||
|
];
|
||||||
perSystem =
|
perSystem =
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
@@ -19,7 +22,7 @@ in
|
|||||||
let
|
let
|
||||||
jsonDocs = import ./eval-docs.nix {
|
jsonDocs = import ./eval-docs.nix {
|
||||||
inherit pkgs lib;
|
inherit pkgs lib;
|
||||||
inherit (self) clanLib;
|
clan-core = self;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ let
|
|||||||
lib.evalModules {
|
lib.evalModules {
|
||||||
specialArgs = { inherit clan-core nix-darwin clanLib; };
|
specialArgs = { inherit clan-core nix-darwin clanLib; };
|
||||||
modules = [
|
modules = [
|
||||||
../../clan/default.nix
|
clan-core.modules.clan.default
|
||||||
{
|
{
|
||||||
self = { };
|
self = { };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user