From 724872d389949701df8bbeb3647775335aac6c21 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 5 Aug 2023 21:02:01 -0600 Subject: [PATCH] [NixOS] Try more things to make monitor setup work at startup --- nixos/base.nix | 2 +- nixos/desktop.nix | 16 ++++++++++++++++ nixos/home-manager.nix | 2 +- nixos/machines/ryzen-shine.nix | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/nixos/base.nix b/nixos/base.nix index 206c6ccf..8a293ce7 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -56,7 +56,7 @@ services.blueman.enable = true; # Printing - services.printing.enable = true; + # services.printing.enable = true; # Keyboard/Keymap console.keyMap = "us"; diff --git a/nixos/desktop.nix b/nixos/desktop.nix index ceec9af4..6bff692c 100644 --- a/nixos/desktop.nix +++ b/nixos/desktop.nix @@ -22,6 +22,22 @@ }; }; + services.autorandr = { + enable = true; + }; + + systemd.services.autorandr-startup = { + partOf = [ "graphical-session.target" ]; + description = "autorandr"; + + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.autorandr}/bin/autorandr --change"; + }; + + wantedBy = [ "graphical-session.target" ]; + }; + # This is for the benefit of VSCODE running natively in wayland environment.sessionVariables.NIXOS_OZONE_WL = "1"; diff --git a/nixos/home-manager.nix b/nixos/home-manager.nix index 07378d12..40740e02 100644 --- a/nixos/home-manager.nix +++ b/nixos/home-manager.nix @@ -107,7 +107,7 @@ inputs: { pkgs, config, ... }: { animation-clamping = false; animation-for-open-window = "zoom"; animation-for-unmap-window = "zoom"; - animation-for-transient-window = "slide-up"; + animation-for-transient-window = "slide-down"; }; wintypes = { diff --git a/nixos/machines/ryzen-shine.nix b/nixos/machines/ryzen-shine.nix index a6d30e81..6a37dcfc 100644 --- a/nixos/machines/ryzen-shine.nix +++ b/nixos/machines/ryzen-shine.nix @@ -32,7 +32,7 @@ enable = true; rate = "59.95"; mode = "2560x1440"; - position = "0x0"; + position = "440x0"; }; }; };