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