mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 10:36:34 +01:00
36 lines
608 B
Nix
36 lines
608 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 ="270";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|