Introduces a NixOS option custom.displays (attrsOf (attrsOf str)) so each host can declare its sway output layout. The home sway module reads it via osConfig. pc-mans is configured with DP-1 (1080p@144Hz, left) and DP-2 (4K@160Hz, right, 1.5x scale). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
773 B
Nix
24 lines
773 B
Nix
{ ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../../modules/system
|
|
];
|
|
|
|
networking.hostName = "pc-mans";
|
|
|
|
custom.displays = {
|
|
"DP-1" = { mode = "1920x1080@144Hz"; pos = "0 0"; }; # AOC 24G2W1G4 — 1080p left
|
|
"DP-2" = { mode = "3840x2160@160Hz"; pos = "1920 0"; scale = "1.5"; }; # AOC U27G4XM — 4K right
|
|
};
|
|
|
|
# Swap is also on LUKS; the root device is unlocked in hardware-configuration.nix.
|
|
boot.initrd.luks.devices."luks-adc1e7e8-4aa9-4d24-923f-724cd28228d1".device =
|
|
"/dev/disk/by-uuid/adc1e7e8-4aa9-4d24-923f-724cd28228d1";
|
|
|
|
# See https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion
|
|
# Pin this to the release used at install time and DO NOT change it on upgrades.
|
|
system.stateVersion = "25.11";
|
|
}
|