Skip to content

Commit

Permalink
fix(nixos): added autorandr for scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
erikreinert committed Sep 15, 2023
1 parent 9a60e0e commit 2a91a8f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lib/nixos/home-manager-desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,26 @@ in
# programs
#---------------------------------------------------------------------

programs.autorandr = {
enable = true;
profiles = {
default = {
config = {
"Virtual-1" = {
enable = true;
dpi = 96;
mode = "1920x1080";
primary = true;
rate = "60";
};
};
fingerprint = {
"Virtual-1" = "--CONNECTED-BUT-EDID-UNAVAILABLE--Virtual-1";
};
};
};
};

programs.firefox = {
enable = true;
package = pkgs.firefox-bin;
Expand Down Expand Up @@ -65,6 +85,12 @@ in

programs.vscode.enable = true;

#---------------------------------------------------------------------
# services
#---------------------------------------------------------------------

services.autorandr.enable = true;

#---------------------------------------------------------------------
# xsession
#---------------------------------------------------------------------
Expand Down

0 comments on commit 2a91a8f

Please sign in to comment.