From 352f5157985a2ccd353439a7ac8af604001b556d Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 30 Sep 2023 10:20:45 -0400 Subject: [PATCH] fix: keyd doesn't restart properly on rebuild --- modules/nixos/hardware/keyboard.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;