about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorlaalsaas <laalsaas@systemli.org>2022-12-06 21:23:25 +0100
committerlaalsaas <laalsaas@systemli.org>2022-12-06 21:40:23 +0100
commitcbf4a44852ceed7e48eb6ee2d959df17e053377a (patch)
tree4689d16d03c7bc1fbb2f7f539ffcb9ffbb5b5016 /nixos/modules/programs
parent6e51c97f1c849efdfd4f3b78a4870e6aa2da4198 (diff)
blesh: init module
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/bash/blesh.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/modules/programs/bash/blesh.nix b/nixos/modules/programs/bash/blesh.nix
new file mode 100644
index 0000000000000..0a9aa62424256
--- /dev/null
+++ b/nixos/modules/programs/bash/blesh.nix
@@ -0,0 +1,16 @@
+{ lib, config, pkgs, ... }:
+with lib;
+let
+  cfg = config.programs.bash.blesh;
+in {
+  options = {
+    programs.bash.blesh.enable = mkEnableOption (mdDoc "blesh");
+  };
+
+  config = mkIf cfg.enable {
+    programs.bash.interactiveShellInit = mkBefore ''
+      source ${pkgs.blesh}/share/ble.sh
+    '';
+  };
+  meta.maintainers = with maintainers; [ laalsaas ];
+}