@@ -0,0 +1,28 @@
1+{ pkgs, config, lib, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.devmon;
7+
8+in {
9+ options = {
10+ services.devmon = {
11+ enable = mkOption {
12+ default = false;
13+ description = ''
14+ Whether to enable devmon, an automatic device mounting daemon.
15+ '';
16+ };
17+ };
18+ };
19+
20+ config = mkIf cfg.enable {
21+ systemd.services.devmon = {
22+ description = "devmon automatic device mounting daemon";
23+ wantedBy = [ "multi-user.target" ];
24+ path = [ pkgs.udevil ];
25+ serviceConfig.ExecStart = "${pkgs.udevil}/bin/devmon";
26+ };
27+ };
28+}