2018-02-26 06:36:16 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.udevil;
|
|
|
|
|
|
|
|
in {
|
|
|
|
options.programs.udevil.enable = mkEnableOption (lib.mdDoc "udevil");
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2021-09-12 18:53:48 +02:00
|
|
|
security.wrappers.udevil =
|
|
|
|
{ setuid = true;
|
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
|
|
|
source = "${lib.getBin pkgs.udevil}/bin/udevil";
|
|
|
|
};
|
2018-02-26 06:36:16 +01:00
|
|
|
};
|
|
|
|
}
|