diff options
Diffstat (limited to 'modules/hardware')
-rw-r--r-- | modules/hardware/colemak.nix | 4 | ||||
-rw-r--r-- | modules/hardware/laptop.nix | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/modules/hardware/colemak.nix b/modules/hardware/colemak.nix index 3b1c058..29a03c8 100644 --- a/modules/hardware/colemak.nix +++ b/modules/hardware/colemak.nix @@ -13,5 +13,9 @@ layout = "us,us"; xkbVariant = "colemak,"; xkbOptions = "grp:shifts_toggle,altwin:prtsc_rwin"; + displayManager.sessionCommands = '' + # Needed for pass/rofi-pass autotype + ${pkgs.xlibs.setxkbmap}/bin/setxkbmap us -variant colemak + ''; }; } diff --git a/modules/hardware/laptop.nix b/modules/hardware/laptop.nix index c08f6b9..1c5d5e3 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; |