diff --git a/nix/home/opdavies/hosts/t490.nix b/nix/home/opdavies/hosts/t490.nix index ea31dbb..e02cca2 100644 --- a/nix/home/opdavies/hosts/t490.nix +++ b/nix/home/opdavies/hosts/t490.nix @@ -3,6 +3,7 @@ { features = { cli = { + bluetuith.enable = true; direnv.enable = true; notes = { diff --git a/nix/modules/home-manager/features/cli/bluetuith.nix b/nix/modules/home-manager/features/cli/bluetuith.nix new file mode 100644 index 0000000..e52812e --- /dev/null +++ b/nix/modules/home-manager/features/cli/bluetuith.nix @@ -0,0 +1,36 @@ +{ + config, + lib, + pkgs, + ... +}: + +with lib; + +{ + options.features.cli.bluetuith.enable = mkEnableOption "Enable bluetuith"; + + config = mkIf config.features.cli.bluetuith.enable { + home.packages = with pkgs; [ + bluetuith + ]; + + xdg.configFile."bluetuith/bluetuith.conf" = { + text = '' + { + adapter: "" + adapter-states: "" + connect-bdaddr: "" + gsm-apn: "" + gsm-number: "" + keybindings: { + NavigateDown: j + NavigateUp: k + } + receive-dir: "" + theme: {} + } + ''; + }; + }; +} diff --git a/nix/modules/home-manager/features/cli/default.nix b/nix/modules/home-manager/features/cli/default.nix index 9d7a57a..e074b3d 100644 --- a/nix/modules/home-manager/features/cli/default.nix +++ b/nix/modules/home-manager/features/cli/default.nix @@ -3,6 +3,7 @@ { imports = [ ./bin.nix + ./bluetuith.nix ./direnv.nix ./fzf.nix ./git.nix