git.iko.soy/typeable/nixpkgs
on master help sign in
xbanish service: init at 1.4
commit3913aaeaadc75d6beeb632abefc1e39608968fec authorHurshal Patel <hurshal@imap.cc> dateTue 19 Apr 2016, 23:24 (11 years ago) parent55028d5
2 files changed+31
nixos/modules/module-list.nix+1 nixos/modules/services/x11/xbanish.nix+30
nixos/modules/module-list.nix+1
@@ -490,6 +490,7 @@
490490 ./services/x11/window-managers/windowlab.nix
491491 ./services/x11/window-managers/wmii.nix
492492 ./services/x11/window-managers/xmonad.nix
493+ ./services/x11/xbanish.nix
493494 ./services/x11/xfs.nix
494495 ./services/x11/xserver.nix
495496 ./system/activation/activation-script.nix
nixos/modules/services/x11/xbanish.nixnew file+30
@@ -0,0 +1,30 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let cfg = config.services.xbanish;
6+
7+in {
8+ options.services.xbanish = {
9+
10+ enable = mkEnableOption "xbanish";
11+
12+ arguments = mkOption {
13+ description = "Arguments to pass to xbanish command";
14+ default = "";
15+ example = "-d -i shift";
16+ type = types.str;
17+ };
18+ };
19+
20+ config = mkIf cfg.enable {
21+ systemd.user.services.xbanish = {
22+ description = "xbanish hides the mouse pointer";
23+ wantedBy = [ "default.target" ];
24+ serviceConfig.ExecStart = ''
25+ ${pkgs.xbanish}/bin/xbanish ${cfg.arguments}
26+ '';
27+ serviceConfig.Restart = "always";
28+ };
29+ };
30+}