Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixos udevil: set up wrapper for udevil
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
let | ||
cfg = config.programs.udevil; | ||
|
||
in { | ||
options.programs.udevil.enable = mkEnableOption "udevil"; | ||
|
||
config = mkIf cfg.enable { | ||
security.wrappers.udevil.source = "${lib.getBin pkgs.udevil}/bin/udevil"; | ||
}; | ||
} |
095260a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this should go in
nixos/modules/security
095260a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
udevil
is not related to security just because it uses a suid wrapper. There is tons of other bits underprograms.
that sets up wrappers.