Regenerated
This commit is contained in:
+439
-392
File diff suppressed because it is too large
Load Diff
@@ -2009,6 +2009,47 @@ This sets the networking.
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+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=
|
** =generated/modules/traveldroid/system/nix.nix=
|
||||||
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/system/nix.nix :noweb yes :mkdirp yes :eval never
|
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/system/nix.nix :noweb yes :mkdirp yes :eval never
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
@@ -2928,6 +2969,7 @@ exec-once = hypridle
|
|||||||
exec-once = awww-daemon
|
exec-once = awww-daemon
|
||||||
exec-once = awww img ~/Wallpapers/pictures/01.jpg
|
exec-once = awww img ~/Wallpapers/pictures/01.jpg
|
||||||
exec-once = ~/.config/awww/scripts/ws-daemon.sh
|
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 = /run/current-system/sw/libexec/polkit-gnome-authentication-agent-1
|
||||||
exec-once = nextcloud --background
|
exec-once = nextcloud --background
|
||||||
exec-once = waybar
|
exec-once = waybar
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ exec-once = hypridle
|
|||||||
exec-once = awww-daemon
|
exec-once = awww-daemon
|
||||||
exec-once = awww img ~/Wallpapers/pictures/01.jpg
|
exec-once = awww img ~/Wallpapers/pictures/01.jpg
|
||||||
exec-once = ~/.config/awww/scripts/ws-daemon.sh
|
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 = /run/current-system/sw/libexec/polkit-gnome-authentication-agent-1
|
||||||
exec-once = nextcloud --background
|
exec-once = nextcloud --background
|
||||||
exec-once = waybar
|
exec-once = waybar
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
|
||||||
|
{ 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user