nixos/mdevctl: init module

This commit is contained in:
Edward Tjörnhammar 2022-11-07 09:40:54 +01:00
parent ea396831fa
commit 83ecc90d10
2 changed files with 19 additions and 0 deletions

View File

@ -186,6 +186,7 @@
./programs/less.nix ./programs/less.nix
./programs/liboping.nix ./programs/liboping.nix
./programs/light.nix ./programs/light.nix
./programs/mdevctl.nix
./programs/mosh.nix ./programs/mosh.nix
./programs/mininet.nix ./programs/mininet.nix
./programs/msmtp.nix ./programs/msmtp.nix

View File

@ -0,0 +1,18 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.programs.mdevctl;
in {
options.programs.mdevctl = {
enable = mkEnableOption (lib.mdDoc "Mediated Device Management");
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ mdevctl ];
environment.etc."mdevctl.d/scripts.d/notifiers/.keep".text = "";
environment.etc."mdevctl.d/scripts.d/callouts/.keep".text = "";
};
}