zenix: move display settings to hardware conf

This commit is contained in:
Tristan 2025-09-22 20:42:19 +01:00
parent 9771065326
commit 6c4eb248c4
2 changed files with 20 additions and 18 deletions

View file

@ -85,6 +85,26 @@
home-manager.users.${user}.imports = [ home-manager.users.${user}.imports = [
{ {
home.stateVersion = "22.05"; home.stateVersion = "22.05";
programs.niri.settings = {
outputs."HP Inc. HP 24x 1CR9500W9Q" = {
mode = {
width = 1920;
height = 1080;
refresh = 143.855;
};
variable-refresh-rate = true;
scale = 1.0;
};
outputs."HDMI-A-1" = {
mode = {
width = 3840;
height = 2160;
refresh = 120.0;
};
variable-refresh-rate = true;
scale = 2.5;
};
};
} }
]; ];
} }

View file

@ -60,24 +60,6 @@
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
DISPLAY = ":0"; DISPLAY = ":0";
}; };
outputs."DP-3" = {
mode = {
width = 1920;
height = 1080;
refresh = 143.855;
};
variable-refresh-rate = true;
scale = 1.0;
};
outputs."HDMI-A-1" = {
mode = {
width = 3840;
height = 2160;
refresh = 120.0;
};
variable-refresh-rate = true;
scale = 2.5;
};
binds = with config.lib.niri.actions; { binds = with config.lib.niri.actions; {
"Mod+Return".action.spawn = [(lib.getExe config.programs.terminal)]; "Mod+Return".action.spawn = [(lib.getExe config.programs.terminal)];
"Mod+O".action.spawn = [(lib.getExe pkgs.cosmic-files)]; "Mod+O".action.spawn = [(lib.getExe pkgs.cosmic-files)];