mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-07 22:16:33 +01:00
37 lines
607 B
Nix
37 lines
607 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
cfg = config.jopejoe1.sway;
|
||
|
in
|
||
|
{
|
||
|
options.jopejoe1.sway = {
|
||
|
enable = lib.mkEnableOption "Enable Sway";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
wayland.windowManager.sway = {
|
||
|
enable = true;
|
||
|
config = {
|
||
|
output = {
|
||
|
HDMI-A-4 = {
|
||
|
mode = "1280x1024@75.025Hz";
|
||
|
};
|
||
|
HDMI-A-3 = {
|
||
|
mode = "2560x1440@143.991Hz";
|
||
|
adaptive_sync = "on";
|
||
|
};
|
||
|
DP-3 = {
|
||
|
mode = "1920x1080@60.000Hz";
|
||
|
transform ="90";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|