mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
22 lines
539 B
Nix
22 lines
539 B
Nix
{ config, lib, nixos, ... }: with lib; {
|
|
options.hardware.displays = mkOption {
|
|
type = with types; attrsOf (submodule ({ config, ... }: {
|
|
options = {
|
|
pos = mkOption {
|
|
type = types.str;
|
|
};
|
|
res = mkOption {
|
|
type = types.str;
|
|
};
|
|
};
|
|
}));
|
|
};
|
|
config = mkMerge [
|
|
{
|
|
hardware.displays = nixos.hardware.displays;
|
|
}
|
|
(mkIf config.wayland.windowManager.sway.enable {
|
|
wayland.windowManager.sway.config.output = config.hardware.displays;
|
|
})
|
|
];
|
|
}
|