repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
nixos/preload: init
[NixPkgs.git]
/
nixos
/
modules
/
programs
/
udevil.nix
blob
b0f00b4b541b0e27d471465c75d5e5fc83101e5e
1
{ config, lib, pkgs, ... }:
2
3
with lib;
4
5
let
6
cfg = config.programs.udevil;
7
8
in {
9
options.programs.udevil.enable = mkEnableOption (lib.mdDoc "udevil");
10
11
config = mkIf cfg.enable {
12
security.wrappers.udevil =
13
{ setuid = true;
14
owner = "root";
15
group = "root";
16
source = "${lib.getBin pkgs.udevil}/bin/udevil";
17
};
18
};
19
}