From 092fb00879d9593e41acf085141ebe2574421da4 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 13 Feb 2018 13:35:25 +0100 Subject: Move some startup programs to sessionCommands --- modules/hardware/laptop.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/hardware/laptop.nix') diff --git a/modules/hardware/laptop.nix b/modules/hardware/laptop.nix index c08f6b96..1c5d5e39 100644 --- a/modules/hardware/laptop.nix +++ b/modules/hardware/laptop.nix @@ -42,6 +42,9 @@ naturalScrolling = true; disableWhileTyping = true; }; + displayManager.sessionCommands = '' + ${pkgs.autorandr}/bin/autorandr --change --force + ''; }; systemd.services.nixos-upgrade.unitConfig.ConditionACPower = true; -- cgit 1.4.1