big refactoring
This commit is contained in:
1 parent
cc12ab5bba
commit
871fad26d4
19 files changed
+702
-988
No files matched your search
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user