Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
|
|
@ -0,0 +1,31 @@
|
|||
let
|
||||
|
||||
# Example: luke standalone home-manager has access to rockhopper osConfig specialArg.
|
||||
os-conditional-hm =
|
||||
{ home, ... }:
|
||||
{
|
||||
# access osConfig, wired via extraSpecialArgs in homes.nix.
|
||||
homeManager =
|
||||
{ osConfig, ... }:
|
||||
{
|
||||
programs.bat.enable = osConfig.programs.${home.programToDependOn}.enable;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
# Example: standalone-hm config depends on osConfig (non-recursive)
|
||||
# NOTE: this will only work for standalone hm, and not for hosted hm
|
||||
# since a hosted hm configuration cannot depend on the os configuration.
|
||||
den.aspects.luke.includes = [
|
||||
os-conditional-hm
|
||||
];
|
||||
|
||||
perSystem =
|
||||
{ checkCond, luke, ... }:
|
||||
{
|
||||
checks.luke-hm-depends-on-osConfig = checkCond "standalone hm can depend on osConfig" (
|
||||
luke.config.programs.bat.enable
|
||||
);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue