refactor: add formatting script
This commit is contained in:
parent
403420fd4b
commit
3479354ec9
7 changed files with 105 additions and 121 deletions
|
|
@ -1,27 +1,21 @@
|
|||
{
|
||||
lib ? import ./../lib,
|
||||
foundation ? import ./../foundation {system = "i686-linux";},
|
||||
}: let
|
||||
foundation ? import ./../foundation { system = "i686-linux"; },
|
||||
}:
|
||||
let
|
||||
modules = import ./src/modules.nix;
|
||||
|
||||
result = lib.modules.run {
|
||||
modules =
|
||||
(builtins.attrValues modules)
|
||||
++ [
|
||||
./src/export.nix
|
||||
{
|
||||
__file__ = ./default.nix;
|
||||
modules = (builtins.attrValues modules) ++ [
|
||||
./src/export.nix
|
||||
{
|
||||
__file__ = ./default.nix;
|
||||
|
||||
options.foundation = lib.options.create {
|
||||
type = lib.types.attrs.of lib.types.derivation;
|
||||
};
|
||||
options.foundation = lib.options.create { type = lib.types.attrs.of lib.types.derivation; };
|
||||
|
||||
config.foundation = foundation;
|
||||
}
|
||||
];
|
||||
config.foundation = foundation;
|
||||
}
|
||||
];
|
||||
};
|
||||
in
|
||||
result.config.exported
|
||||
// {
|
||||
inherit (result) config;
|
||||
}
|
||||
result.config.exported // { inherit (result) config; }
|
||||
|
|
|
|||
|
|
@ -9,11 +9,13 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = inputs: let
|
||||
exports = import ./default.nix {
|
||||
lib = inputs.lib.lib;
|
||||
foundation = inputs.foundation.packages.i686-linux;
|
||||
};
|
||||
in
|
||||
outputs =
|
||||
inputs:
|
||||
let
|
||||
exports = import ./default.nix {
|
||||
lib = inputs.lib.lib;
|
||||
foundation = inputs.foundation.packages.i686-linux;
|
||||
};
|
||||
in
|
||||
exports;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue