diff --git a/home/jashton.nix b/home/jashton.nix index fc58213..3468d5a 100644 --- a/home/jashton.nix +++ b/home/jashton.nix @@ -108,6 +108,23 @@ in ''; }; + systemd.user.services.lan-mouse = { + Unit = { + Description = "Lan Mouse Daemon"; + After = [ "graphical-session.target" ]; + PartOf = [ "graphical-session.target" ]; + }; + Install = { + WantedBy = [ "graphical-session.target" ]; + }; + Service = { + # The --daemon flag ensures it runs silently in the background without opening the GUI + ExecStart = "${pkgs.lan-mouse}/bin/lan-mouse --daemon"; + Restart = "on-failure"; + RestartSec = "5"; + }; + }; + programs.ssh = { enable = true; matchBlocks = { diff --git a/system/packages.nix b/system/packages.nix index ed8fd92..e5c834f 100644 --- a/system/packages.nix +++ b/system/packages.nix @@ -24,6 +24,7 @@ gnupg jq keepassxc + lan-mouse libnotify mypy networkmanagerapplet