⚗️🚧 (modules/flake) Update easy-hosts config and flake module args

This commit is contained in:
Jo 2025-01-15 23:56:16 +01:00
parent ecfbc9baf6
commit e54b87a835
10 changed files with 85 additions and 49 deletions

30
modules/flake/systems.nix Normal file
View file

@ -0,0 +1,30 @@
{
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
])
];
};
};
}