mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-05-12 14:39:48 +02:00
28 lines
519 B
Nix
28 lines
519 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.
|
|
};
|
|
};
|
|
}
|