mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-02-12 06:03:05 +01:00
29 lines
523 B
Nix
29 lines
523 B
Nix
{
|
|
lib,
|
|
inputs,
|
|
namespace,
|
|
puzzlelib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ inputs.easy-hosts.flakeModule ];
|
|
|
|
easyHosts = {
|
|
autoConstruct = true;
|
|
path = ../../systems;
|
|
|
|
shared = {
|
|
specialArgs = {
|
|
inherit namespace puzzlelib;
|
|
};
|
|
};
|
|
|
|
perClass = class: {
|
|
modules = [
|
|
(lib.optionals (class == "nixos") [
|
|
inputs.home-manager.nixosModules.default
|
|
])
|
|
] ++ (puzzlelib.dirToModuleList ../${class}); # Import modules based on current classname.
|
|
};
|
|
};
|
|
}
|