xbanish service: init at 1.4

Changed files
+31
nixos
modules
+1
nixos/modules/module-list.nix
···
./services/x11/window-managers/windowlab.nix
./services/x11/window-managers/wmii.nix
./services/x11/window-managers/xmonad.nix
./services/x11/xfs.nix
./services/x11/xserver.nix
./system/activation/activation-script.nix
···
./services/x11/window-managers/windowlab.nix
./services/x11/window-managers/wmii.nix
./services/x11/window-managers/xmonad.nix
+
./services/x11/xbanish.nix
./services/x11/xfs.nix
./services/x11/xserver.nix
./system/activation/activation-script.nix
+30
nixos/modules/services/x11/xbanish.nix
···
···
+
{ config, lib, pkgs, ... }:
+
+
with lib;
+
+
let cfg = config.services.xbanish;
+
+
in {
+
options.services.xbanish = {
+
+
enable = mkEnableOption "xbanish";
+
+
arguments = mkOption {
+
description = "Arguments to pass to xbanish command";
+
default = "";
+
example = "-d -i shift";
+
type = types.str;
+
};
+
};
+
+
config = mkIf cfg.enable {
+
systemd.user.services.xbanish = {
+
description = "xbanish hides the mouse pointer";
+
wantedBy = [ "default.target" ];
+
serviceConfig.ExecStart = ''
+
${pkgs.xbanish}/bin/xbanish ${cfg.arguments}
+
'';
+
serviceConfig.Restart = "always";
+
};
+
};
+
}