2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.udevil;
|
|
|
|
|
|
|
|
in {
|
2022-09-09 14:08:57 +00:00
|
|
|
options.programs.udevil.enable = mkEnableOption (lib.mdDoc "udevil");
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|