Regenerated

This commit is contained in:
2026-04-29 23:05:34 +02:00
parent 6ac620dd76
commit fc6b0e8adc
4 changed files with 520 additions and 392 deletions
+42
View File
@@ -2009,6 +2009,47 @@ This sets the networking.
}
#+END_SRC
** =generated/modules/traveldroid/system/numlock-check.nix=
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/system/numlock-check.nix :noweb yes :mkdirp yes :eval never
{ lib, config, pkgs, flakeRoot, ... }:
let
username = config.defaultUser or "henrov";
scriptSrc = "${flakeRoot}/generated/.config/shared/scripts/numlock-check.sh";
in
{
environment.systemPackages = [ pkgs.numlockx pkgs.libinput ];
home-manager.users.${username} = {
home.activation.installNumlockScript = {
after = [ "writeBoundary" ];
before = [];
data = ''
mkdir -p $HOME/.config/shared/scripts
cp ${scriptSrc} $HOME/.config/shared/scripts/numlock-check.sh
chmod u+x $HOME/.config/shared/scripts/numlock-check.sh
'';
};
};
systemd.user.services.numlock-check = {
description = "Check and set numlock based on keyboard count";
serviceConfig = {
Type = "oneshot";
ExecStart = "%h/.config/shared/scripts/numlock-check.sh";
};
};
systemd.user.timers.numlock-check = {
description = "Run numlock check periodically";
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "5s";
OnUnitActiveSec = "10s";
};
};
}
#+END_SRC
** =generated/modules/traveldroid/system/nix.nix=
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/system/nix.nix :noweb yes :mkdirp yes :eval never
{ lib, config, ... }:
@@ -2928,6 +2969,7 @@ exec-once = hypridle
exec-once = awww-daemon
exec-once = awww img ~/Wallpapers/pictures/01.jpg
exec-once = ~/.config/awww/scripts/ws-daemon.sh
exec-once = ~/.config/shared/scripts/numlock-check.sh
exec-once = /run/current-system/sw/libexec/polkit-gnome-authentication-agent-1
exec-once = nextcloud --background
exec-once = waybar