2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.udevil;
|
|
|
|
|
|
|
|
in {
|
|
|
|
options.programs.udevil.enable = mkEnableOption "udevil";
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2021-09-22 15:38:15 +00:00
|
|
|
security.wrappers.udevil =
|
|
|
|
{ setuid = true;
|
|
|
|
owner = "root";
|
|
|
|
group = "root";
|
|
|
|
source = "${lib.getBin pkgs.udevil}/bin/udevil";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|