enabled numlock at boot
This commit is contained in:
2024-05-09 10:33:59 +10:00
parent c526375b22
commit ae2737458b

View File

@@ -52,6 +52,19 @@
xkbVariant = ""; xkbVariant = "";
}; };
# Enable Numlock being turned on at startup
systemd.services.numLockOnTty = {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
# /run/current-system/sw/bin/setleds -D +num < "$tty";
ExecStart = lib.mkForce (pkgs.writeShellScript "numLockOnTty" ''
for tty in /dev/tty{1..6}; do
${pkgs.kbd}/bin/setleds -D +num < "$tty";
done
'');
};
};
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
# Print auto discovery is not working seeing if this fixes it. # Print auto discovery is not working seeing if this fixes it.