From b27442991ee21e0a5274095d7d062e791237d0ec Mon Sep 17 00:00:00 2001 From: Ahwx Date: Sun, 27 Jul 2025 00:10:08 +0200 Subject: [PATCH] feat: write big cursed function to make `zinnia`'s display work --- modules/home/hyprland/config.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index a014d1e..5452bb1 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, host, ... }: { fonts.fontconfig.enable = true; home.packages = [ @@ -58,7 +58,14 @@ source = "~/nixos-config/modules/home/hyprland/displays.conf"; "debug:disable_scale_checks" = true; - monitor = "eDP-1, 2256x1504@60, 0x0, 1.5"; + # monitor = "eDP-1, 2256x1504@60, 0x0, 1.5"; + monitor = + if (host == "sakura") then + "eDP-1, 2256x1504@60, 0x0, 1.5" + else if (host == "zinnia") then + "eDP-1, 1920x1080@60, 0x0, 1.0" + else + ", preferred, auto, 1"; # autostart exec-once = [