nixos udevil: set up wrapper for udevil

This commit is contained in:
Peter Hoeg 2018-02-26 13:36:16 +08:00
parent c12a174a07
commit 095260a1c9
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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";
};
}