mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-18 12:36:51 +02:00
306741c2a7
* feat: idols-ai - use intel intel iGPU by default, choose Nvidia dGPU manullay - via prime
* fix: niri - update output names for new motherboard
* fix: niri - DP-1 with prime offload mode - supports only 120HZ
* flake.lock: Update
Flake lock file updates:
• Updated input 'nixpkgs-master':
'github:nixos/nixpkgs/3879e47ce293fb2932d656aa56551a8e80718533?narHash=sha256-siN4x7y/S0FOdjPC1W0Z/vrX4Rlu%2BVClkEGngmSd0vM%3D' (2026-03-24)
→ 'github:nixos/nixpkgs/03de9fe87cb2dcec8da9dbaa3ad1c71ea7fef223?narHash=sha256-B7GmxbRADkklyXzV1ahgY4QhCpbQ3crzPCCs2hf6bPM%3D' (2026-04-26)
* flake.lock: Update
Flake lock file updates:
• Updated input 'nixpkgs-stable':
'github:nixos/nixpkgs/e9f278faa1d0c2fc835bd331d4666b59b505a410?narHash=sha256-Jms57zzlFf64ayKzzBWSE2SGvJmK%2BNGt8Gli71d9kmY%3D' (2026-03-14)
→ 'github:nixos/nixpkgs/a4bf06618f0b5ee50f14ed8f0da77d34ecc19160?narHash=sha256-AIiMJiqvGrN4HyLEbKAoCSRRYn0rnlW5VbKNIMIYqm4%3D' (2026-04-25)
52 lines
2.1 KiB
KDL
52 lines
2.1 KiB
KDL
// running `niri msg outputs` to find outputs
|
||
output "DP-1" {
|
||
// Uncomment this line to disable this output.
|
||
// off
|
||
|
||
// Scale is a floating-point number, but at the moment only integer values work.
|
||
scale 1.5
|
||
|
||
// Transform allows to rotate the output counter-clockwise, valid values are:
|
||
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
||
transform "normal"
|
||
|
||
// Resolution and, optionally, refresh rate of the output.
|
||
// The format is "<width>x<height>" or "<width>x<height>@<refresh rate>".
|
||
// If the refresh rate is omitted, niri will pick the highest refresh rate
|
||
// for the resolution.
|
||
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
|
||
// Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
|
||
mode "3840x2160@120"
|
||
|
||
// Position of the output in the global coordinate space.
|
||
// This affects directional monitor actions like "focus-monitor-left", and cursor movement.
|
||
// The cursor can only move between directly adjacent outputs.
|
||
// Output scale has to be taken into account for positioning:
|
||
// outputs are sized in logical, or scaled, pixels.
|
||
// For example, a 3840×2160 output with scale 2.0 will have a logical size of 1920×1080,
|
||
// so to put another output directly adjacent to it on the right, set its x to 1920.
|
||
// It the position is unset or results in an overlap, the output is instead placed
|
||
// automatically.
|
||
position x=0 y=0
|
||
}
|
||
|
||
output "HDMI-A-2" {
|
||
scale 1.5
|
||
transform "normal"
|
||
mode "3840x2160@60"
|
||
position x=2560 y=0 // on the right of DP-2
|
||
}
|
||
|
||
// ============= Named Workspaces =============
|
||
workspace "2browser" { open-on-output "DP-1"; }
|
||
workspace "4gaming" { open-on-output "DP-1"; }
|
||
workspace "5music" { open-on-output "DP-1"; }
|
||
|
||
workspace "1terminal" { open-on-output "HDMI-A-2"; }
|
||
workspace "3chat" { open-on-output "HDMI-A-2"; }
|
||
workspace "6file" { open-on-output "HDMI-A-2"; }
|
||
workspace "7" { open-on-output "HDMI-A-2"; }
|
||
workspace "8" { open-on-output "HDMI-A-2"; }
|
||
workspace "9" { open-on-output "HDMI-A-2"; }
|
||
workspace "0other" { open-on-output "HDMI-A-2"; }
|