1 { config, lib, pkgs, ... }:
5 let cfg = config.services.xbanish;
8 options.services.xbanish = {
10 enable = mkEnableOption (lib.mdDoc "xbanish");
12 arguments = mkOption {
13 description = lib.mdDoc "Arguments to pass to xbanish command";
15 example = "-d -i shift";
20 config = mkIf cfg.enable {
21 systemd.user.services.xbanish = {
22 description = "xbanish hides the mouse pointer";
23 wantedBy = [ "graphical-session.target" ];
24 partOf = [ "graphical-session.target" ];
25 serviceConfig.ExecStart = ''
26 ${pkgs.xbanish}/bin/xbanish ${cfg.arguments}
28 serviceConfig.Restart = "always";