nixpkgs/nixos/modules/services/misc/devmon.nix

34 lines
598 B
Nix
Raw Permalink Normal View History

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