mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-10 04:40:05 +00:00
✨ finalize home configuration loading as nixos module, and more stuffs :3
This commit is contained in:
parent
f89cbcc552
commit
dc87b2c186
16 changed files with 192 additions and 87 deletions
|
@ -1,28 +1,21 @@
|
|||
{
|
||||
lib,
|
||||
inputs,
|
||||
namespace,
|
||||
puzzlelib,
|
||||
self,
|
||||
...
|
||||
}: {
|
||||
imports = [inputs.easy-hosts.flakeModule];
|
||||
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.
|
||||
++ (self.lib.dirToModuleList ../${class}); # Import modules based on current classname.
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue