[NixOS] Try more things to make monitor setup work at startup

This commit is contained in:
2023-08-05 21:02:01 -06:00
parent f289424c26
commit 724872d389
4 changed files with 19 additions and 3 deletions

View File

@@ -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";