Skip to content

Commit

Permalink
nixos udevil: set up wrapper for udevil
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Feb 26, 2018
1 parent c12a174 commit 095260a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Expand Up @@ -109,6 +109,7 @@
./programs/sway.nix
./programs/thefuck.nix
./programs/tmux.nix
./programs/udevil.nix
./programs/venus.nix
./programs/vim.nix
./programs/way-cooler.nix
Expand Down
14 changes: 14 additions & 0 deletions nixos/modules/programs/udevil.nix
@@ -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";
};
}

2 comments on commit 095260a

@matthewbauer
Copy link
Member

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

@peterhoeg
Copy link
Member Author

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 under programs. that sets up wrappers.

Please sign in to comment.