tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
xbanish service: init at 1.4
Hurshal Patel
9 years ago
3913aaea
55028d55
+31
2 changed files
expand all
collapse all
unified
split
nixos
modules
module-list.nix
services
x11
xbanish.nix
+1
nixos/modules/module-list.nix
···
490
490
./services/x11/window-managers/windowlab.nix
491
491
./services/x11/window-managers/wmii.nix
492
492
./services/x11/window-managers/xmonad.nix
493
493
+
./services/x11/xbanish.nix
493
494
./services/x11/xfs.nix
494
495
./services/x11/xserver.nix
495
496
./system/activation/activation-script.nix
+30
nixos/modules/services/x11/xbanish.nix
···
1
1
+
{ config, lib, pkgs, ... }:
2
2
+
3
3
+
with lib;
4
4
+
5
5
+
let cfg = config.services.xbanish;
6
6
+
7
7
+
in {
8
8
+
options.services.xbanish = {
9
9
+
10
10
+
enable = mkEnableOption "xbanish";
11
11
+
12
12
+
arguments = mkOption {
13
13
+
description = "Arguments to pass to xbanish command";
14
14
+
default = "";
15
15
+
example = "-d -i shift";
16
16
+
type = types.str;
17
17
+
};
18
18
+
};
19
19
+
20
20
+
config = mkIf cfg.enable {
21
21
+
systemd.user.services.xbanish = {
22
22
+
description = "xbanish hides the mouse pointer";
23
23
+
wantedBy = [ "default.target" ];
24
24
+
serviceConfig.ExecStart = ''
25
25
+
${pkgs.xbanish}/bin/xbanish ${cfg.arguments}
26
26
+
'';
27
27
+
serviceConfig.Restart = "always";
28
28
+
};
29
29
+
};
30
30
+
}