This commit is contained in:
parent
30f81b2b79
commit
d9d4e43c35
17 changed files with 310 additions and 276 deletions
27
config.nix
27
config.nix
|
|
@ -33,19 +33,28 @@ rec {
|
|||
requirements: lib.all (req: builtins.elem req capabilities) requirements;
|
||||
program =
|
||||
{
|
||||
inputs,
|
||||
name,
|
||||
requirements ? [ ],
|
||||
home-config,
|
||||
system-config ? { },
|
||||
system-config ? (_: { }),
|
||||
}:
|
||||
# if (matches-capabilities requirements) then
|
||||
if (true) then
|
||||
{
|
||||
inherit home-config system-config;
|
||||
}
|
||||
if (matches-capabilities requirements) then
|
||||
[ (if builtins.isNull home-only then (system-config inputs) else (home-config inputs)) ]
|
||||
++
|
||||
|
||||
(
|
||||
if builtins.isNull home-only then
|
||||
[
|
||||
(_: {
|
||||
custom.program.${name}.defered-config = home-config;
|
||||
})
|
||||
]
|
||||
else
|
||||
[ ]
|
||||
)
|
||||
else
|
||||
{
|
||||
# home-config = _: { };
|
||||
};
|
||||
[ ];
|
||||
specialArgsForHomeSystem =
|
||||
{
|
||||
system,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue