commits
This works like `class` and `perClass`, but allows for setting multiple
of them, this way you can do something like:
```nix
{
easy-hosts.hosts.lemon = {
class = "nixos";
tags = ["laptop" "gaming" "work"];
};
easy-hosts.perTag =
let
tagModule = {
gaming = ./modules/gaming;
laptop = ./modules/laptop;
work = ./modules/work;
};
in
tag: {
modules = [tagModule.${tag}];
};
}
```
fix(typos): a bunch of typos detected by typos :p
Fix re-evaluation of perClass
fix(#4): I hope T-T
Mostly in `lib.nix`
Even though the args are the same, `perClass` is re-evaluated otherwise.
Seems to get me further in my private configuration.
this lead to https://github.com/tgirlcloud/easy-hosts/issues/3
imho it worsens the APIs but its much better for errors
This works like `class` and `perClass`, but allows for setting multiple
of them, this way you can do something like:
```nix
{
easy-hosts.hosts.lemon = {
class = "nixos";
tags = ["laptop" "gaming" "work"];
};
easy-hosts.perTag =
let
tagModule = {
gaming = ./modules/gaming;
laptop = ./modules/laptop;
work = ./modules/work;
};
in
tag: {
modules = [tagModule.${tag}];
};
}
```