-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinputd.nix
36 lines (28 loc) · 813 Bytes
/
inputd.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ system, inputs, config, lib, pkgs, ... }:
with lib;
let
cfg = config.regolith.inputd;
in {
options.regolith.inputd = {
enable = mkEnableOption "Add regolith-inputd binary and services";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
(import ./regolith-inputd/default.nix { inherit pkgs; })
];
systemd.user.services.regolith-init-inputd = {
description = "Start Regolith Input Daemon";
partOf = [ "graphical-session.target" ];
wants = [ "gnome-session.target" ];
after = [ "gnome-session.target" ];
startLimitIntervalSec = 10;
startLimitBurst = 5;
serviceConfig = {
Type = "exec";
ExecStart = "regolith-inputd";
Restart = "on-failure";
};
wantedBy = [ "regolith-wayland.target" ];
};
};
}