2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.udevil;
|
|
|
|
|
|
|
|
in {
|
2024-05-15 15:35:15 +00:00
|
|
|
options.programs.udevil.enable = lib.mkEnableOption "udevil, to mount filesystems without password";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
config = lib.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
|
|
|
};
|
|
|
|
}
|