mirror of
https://github.com/oqyude/nixos.git
synced 2026-10-07 20:47:14 +03:00
28 lines
398 B
Nix
28 lines
398 B
Nix
{
|
|
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;
|
|
};
|
|
}
|