Displaylink: Difference between revisions
imported>Legogris m Added clarification on adding binary to nix-store |
imported>4ludwig4 No edit summary |
||
Line 10: | Line 10: | ||
</nowiki>}} | </nowiki>}} | ||
Before the monitor can be used by {{ic|xrandr}}, you will need to run the following command, which can be added to e.g. your {{ic|~/.xprofile}}: | Before the monitor can be used by {{ic|xrandr}}, you will need to run the following command, which can be added to e.g. your {{ic|~/.xprofile}} (this is not necessary since NixOS 20.03): | ||
{{bc|<nowiki>$ xrandr --setprovideroutputsource 1 0</nowiki>}} | {{bc|<nowiki>$ xrandr --setprovideroutputsource 1 0</nowiki>}} | ||
====Connecting a second external monitor==== | |||
In order to add a second external monitor you can add the following to your configuration: | |||
<syntaxhighlight lang="nix">services.xserver.displayManager.sessionCommands = '' | |||
${lib.getBin pkgs.xorg.xrandr}/bin/xrandr --setprovideroutputsource 2 0 | |||
'';</syntaxhighlight> | |||
====Status of the package==== | |||
As of right now (2020-01-24), the package in the {{ic|nixos}} stable channel is out of date, so you may need to override it from {{ic|nixpkgs}}. | As of right now (2020-01-24), the package in the {{ic|nixos}} stable channel is out of date, so you may need to override it from {{ic|nixpkgs}}. | ||
Since '''NixOS 20.03''' this package is working out of the box again. | |||
[[Category:Video]] | [[Category:Video]] |