forked from gh0stzk/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added xorgScale.nix file that will set scaling in xorg if the xrandrScale option is set in a options.nix file gnome-keyring should work properly now when we login (from sddm)
- Loading branch information
Showing
6 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,4 +76,7 @@ in { | |
# Enable SyncThing | ||
syncthing = true; | ||
|
||
# Xorg scaling | ||
xrandrScale = "0.8x0.8"; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,6 @@ | |
./services.nix | ||
./syncthing.nix | ||
./vm.nix | ||
./xorgScale.nix | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ config, lib, host, ... }: | ||
|
||
let inherit (import ../hosts/${host}/options.nix) xrandrScale; in | ||
lib.mkIf ("${xrandrScale}" != null && "${host}" == "nix-lappy") { | ||
services.xserver.displayManager.sessionCommands = '' | ||
xrandr --output eDP-1 --scale ${xrandrScale} --mode 2880x1800 | ||
''; | ||
} |