Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
598 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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;
};
}