diff --git a/modules/nixos/hardware/keyboard.nix b/modules/nixos/hardware/keyboard.nix index 77370af..52472d0 100644 --- a/modules/nixos/hardware/keyboard.nix +++ b/modules/nixos/hardware/keyboard.nix @@ -1,4 +1,4 @@ -{ config, ... }: { +{ config, pkgs, ... }: { config = { @@ -23,6 +23,10 @@ }; }; + # For some reason, keyd doesn't restart properly when updating + system.activationScripts.keyd.text = + "${pkgs.systemd}/bin/systemctl restart keyd.service"; + # Enable num lock on login home-manager.users.${config.user}.xsession.numlock.enable = true;