big refactoring

This commit is contained in:
2026-08-11 02:31:00 +03:00
parent cc12ab5bba
commit 871fad26d4
19 changed files with 702 additions and 988 deletions
+27
View File
@@ -0,0 +1,27 @@
{
inputs,
...
}:
{
deviceType,
hostname ? null,
modules ? [ ],
system ? "x86_64-linux",
}:
let
lib = inputs.nixpkgs.lib;
in
lib.nixosSystem {
inherit system;
modules = modules ++ [
{
xlib.device = {
type = deviceType;
}
// lib.optionalAttrs (hostname != null) { inherit hostname; };
}
];
specialArgs = {
inherit deviceType inputs;
};
}