blob: e4c0daea72c1b317b578c47f9c12f1be06ced5bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ config, lib, pkgs, ... }:
let
cfg = config.programs.udevil;
in {
options.programs.udevil.enable = lib.mkEnableOption "udevil, to mount filesystems without password";
config = lib.mkIf cfg.enable {
security.wrappers.udevil =
{ setuid = true;
owner = "root";
group = "root";
source = "${lib.getBin pkgs.udevil}/bin/udevil";
};
};
}
|