aboutsummaryrefslogtreecommitdiff
path: root/snowfall/systems/x86_64-linux/c-pc/default.nix
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-04 19:28:02 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:44 -0700
commitfc0268a11ce5f3a797fdcb929555ee2344b6fa97 (patch)
treef3a143b266bfb2d37110c9b1c553a8c8fe33f3d4 /snowfall/systems/x86_64-linux/c-pc/default.nix
parent96ed4cc496be35903121ca4e3176206d3f28efc6 (diff)
migration: c-pc xorg config
Diffstat (limited to 'snowfall/systems/x86_64-linux/c-pc/default.nix')
-rw-r--r--snowfall/systems/x86_64-linux/c-pc/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/snowfall/systems/x86_64-linux/c-pc/default.nix b/snowfall/systems/x86_64-linux/c-pc/default.nix
index 05f6965..cb968be 100644
--- a/snowfall/systems/x86_64-linux/c-pc/default.nix
+++ b/snowfall/systems/x86_64-linux/c-pc/default.nix
@@ -20,6 +20,21 @@ with lib; with lib.${namespace}; {
fonts.extra = with pkgs; [
minecraftia
];
+
+ apps.i3 = {
+ videoDrivers = [ "amdgpu" ];
+ setupCommands = ''
+ if ${pkgs.xorg.xrandr}/bin/xrandr --query | grep 2560x1080; then
+ ${pkgs.xorg.xrandr}/bin/xrandr --output DVI-D-0 --mode 1920x1080 --rate 60 --pos 0x0
+ ${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-2 --mode 2560x1080 --rate 60 --pos 1920x0 --primary
+ ${pkgs.xorg.xrandr}/bin/xrandr --output HDMI-A-0 --mode 1920x1080 --rate 75 --pos 4480x0
+ elif ${pkgs.xorg.xrandr}/bin/xrandr --query | grep 2560x1440; then
+ ${pkgs.xorg.xrandr}/bin/xrandr --output DVI-D-0 --mode 1920x1080 --rate 60 --pos 0x360
+ ${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-2 --mode 2560x1440 --rate 165 --pos 1920x0 --primary
+ ${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-1 --mode 1920x1200 --rate 60 --pos 4480x0
+ fi
+ '';
+ };
};
system.stateVersion = "23.11";