mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-09 20:30:05 +00:00
⚗️🚧 (modules/flake) Update easy-hosts config and flake module args
This commit is contained in:
parent
ecfbc9baf6
commit
e54b87a835
10 changed files with 85 additions and 49 deletions
30
modules/flake/systems.nix
Normal file
30
modules/flake/systems.nix
Normal 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
|
||||
])
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue