mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 12:36:42 +01:00
update nixos config, update install-new-desktop.sh
This commit is contained in:
31
nixos/chromeos-extra-hardware-configuration.nix
Normal file
31
nixos/chromeos-extra-hardware-configuration.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
# This is a custom file for a chromebook.
|
||||
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
services.logind.extraConfig = ''
|
||||
# disable power button. This is for the chromebook
|
||||
HandlePowerKey=ignore
|
||||
'';
|
||||
|
||||
# Set an usable key configuration: Ctrl at capslock, Win at Alt, Alt at Ctrl
|
||||
services.xserver.displayManager.sessionCommands =''
|
||||
${pkgs.xorg.xmodmap}/bin/xmodmap "${pkgs.writeText "xkb-layout" ''
|
||||
!
|
||||
! Swap Caps_Lock and Control_L
|
||||
!
|
||||
|
||||
remove control = Control_L
|
||||
remove mod1 = Alt_L
|
||||
remove mod4 = Super_L
|
||||
|
||||
keysym Control_L = Alt_L
|
||||
keysym Super_L = Control_L
|
||||
keysym Alt_L = Super_L
|
||||
|
||||
add control = Control_L
|
||||
add mod1 = Alt_L
|
||||
add mod4 = Super_L
|
||||
''}"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user