depot/third_party/nixpkgs/nixos/modules/services/misc/devmon.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

22 lines
552 B
Nix

{ pkgs, config, lib, ... }:
let
cfg = config.services.devmon;
in {
options = {
services.devmon = {
enable = lib.mkEnableOption "devmon, an automatic device mounting daemon";
};
};
config = lib.mkIf cfg.enable {
systemd.user.services.devmon = {
description = "devmon automatic device mounting daemon";
wantedBy = [ "default.target" ];
path = [ pkgs.udevil pkgs.procps pkgs.udisks2 pkgs.which ];
serviceConfig.ExecStart = "${pkgs.udevil}/bin/devmon";
};
services.udisks2.enable = true;
};
}