summary refs log tree commit diff
path: root/nixos/modules/programs/udevil.nix
blob: 25975d88ec8609f348ad7a1335ab0d9ea9a857e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, lib, pkgs, ... }:

with lib;

let
  cfg = config.programs.udevil;

in {
  options.programs.udevil.enable = mkEnableOption "udevil";

  config = mkIf cfg.enable {
    security.wrappers.udevil.source = "${lib.getBin pkgs.udevil}/bin/udevil";

    systemd.packages = [ pkgs.udevil ];
    systemd.services."devmon@".wantedBy = [ "multi-user.target" ];
  };
}