1{ pkgs, config, lib, ... }:
2
3with lib;
4
5let
6 cfg = config.services.devmon;
7
8in {
9 options = {
10 services.devmon = {
11 enable = mkEnableOption (lib.mdDoc "devmon, an automatic device mounting daemon");
12 };
13 };
14
15 config = mkIf cfg.enable {
16 systemd.user.services.devmon = {
17 description = "devmon automatic device mounting daemon";
18 wantedBy = [ "default.target" ];
19 path = [ pkgs.udevil pkgs.procps pkgs.udisks2 pkgs.which ];
20 serviceConfig.ExecStart = "${pkgs.udevil}/bin/devmon";
21 };
22
23 services.udisks2.enable = true;
24 };
25}