mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
nixos/mdevctl: init module
This commit is contained in:
parent
ea396831fa
commit
83ecc90d10
@ -186,6 +186,7 @@
|
||||
./programs/less.nix
|
||||
./programs/liboping.nix
|
||||
./programs/light.nix
|
||||
./programs/mdevctl.nix
|
||||
./programs/mosh.nix
|
||||
./programs/mininet.nix
|
||||
./programs/msmtp.nix
|
||||
|
18
nixos/modules/programs/mdevctl.nix
Normal file
18
nixos/modules/programs/mdevctl.nix
Normal 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 = "";
|
||||
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user