EVIY4BP2W2LAAR6EHEMR7S2ZKBZMIVDQRKFPNP4FBIBUZZRNSQIQC #!/usr/bin/env bashCURRENT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" && pwd )"if ! docker=$(command -v docker); thenif ! docker=$(command -v podman); thenecho "Docker or Podman not found"exit 1fifirun_container() {exec "$docker" run \"$1" \--rm \--name mqtt \-p 1883:1883 \-p 9001:9001 \-v "$CURRENT_DIR/files/mosquitto/config":/mosquitto/config:O \eclipse-mosquitto \"${@:2}"}case "$1" inrun)run_container "-it" "${@:2}";;start)run_container "-d" "${@:2}";;stop)exec "$docker" stop mqtt;;logs)exec "$docker" logs "${@:2}" mqtt;;*)echo "Usage: $0 {run|start|stop|log}"exit 1;;esac
allow_anonymous truelistener 1883 0.0.0.0listener 1883 ::
{inputs = {nixpkgs.url = "nixpkgs/nixos-22.11";flake-utils.url = "github:numtide/flake-utils";rust-overlay = {url = "github:oxalica/rust-overlay";inputs.nixpkgs.follows = "nixpkgs";inputs.flake-utils.follows = "flake-utils";};};outputs = {nixpkgs,rust-overlay,flake-utils,...}:flake-utils.lib.eachDefaultSystem (system: letoverlays = [(import rust-overlay)];pkgs = import nixpkgs {inherit system overlays;};rust = pkgs.rust-bin.stable.latest.default.override {extensions = ["rust-src" "cargo" "rustc" "clippy"];};nativeBuildInputs = with pkgs; [rustpkg-config];buildInputs = with pkgs; [libuvsystemd.dev];packages = with pkgs; [rust-analyzernilgit];in {formatter = pkgs.alejandra;devShell = pkgs.mkShell {inherit nativeBuildInputs buildInputs packages;RUST_SRC_PATH = "${rust}/lib/rustlib/src/rust/library";};});}
{"nodes": {"flake-utils": {"locked": {"lastModified": 1667395993,"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=","owner": "numtide","repo": "flake-utils","rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f","type": "github"},"original": {"owner": "numtide","repo": "flake-utils","type": "github"}},"nixpkgs": {"locked": {"lastModified": 1669919498,"narHash": "sha256-cndPLdFj2V0OchIgz1sOVKZXOi+ETgSq/OqCCbWsRoo=","owner": "NixOS","repo": "nixpkgs","rev": "14c7bd44711b04c05cb78412451005415310b6bd","type": "github"},"original": {"id": "nixpkgs","ref": "nixos-22.11","type": "indirect"}},"root": {"inputs": {"flake-utils": "flake-utils","nixpkgs": "nixpkgs","rust-overlay": "rust-overlay"}},"rust-overlay": {"inputs": {"flake-utils": ["flake-utils"],"nixpkgs": ["nixpkgs"]},"locked": {"lastModified": 1669948173,"narHash": "sha256-hfL2dTSBPVEWH117GTBk/mYCJbaa3FQar3CcTlKQvhc=","owner": "oxalica","repo": "rust-overlay","rev": "3d506453ce9c510b12e8dd98781bfaa2ea436772","type": "github"},"original": {"owner": "oxalica","repo": "rust-overlay","type": "github"}}},"root": "root","version": 7}
MIT LicenseCopyright (c) 2022 Jonathan DickinsonPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.
{"editor.tabSize": 2,"editor.formatOnSave": true,"[json]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[jsonc]": {"editor.defaultFormatter": "esbenp.prettier-vscode"},"[markdown]": {"editor.defaultFormatter": "esbenp.prettier-vscode"}}
{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"type": "lldb","request": "launch","name": "Debug unit tests in library 'sockt-ecosystem-zwave'","cargo": {"args": ["test","--no-run","--lib","--package=sockt-ecosystem-zwave"],"filter": {"name": "sockt-ecosystem-zwave","kind": "lib"}},"args": [],"cwd": "${workspaceFolder}"},{"type": "lldb","request": "launch","name": "Debug executable 'sockt-ecosystem-zwave'","cargo": {"args": ["build","--bin=sockt-ecosystem-zwave","--package=sockt-ecosystem-zwave"],"filter": {"name": "sockt-ecosystem-zwave","kind": "bin"}},"args": [],"cwd": "${workspaceFolder}","env": {"RUST_BACKTRACE": "1"}},{"type": "lldb","request": "launch","name": "Debug unit tests in executable 'sockt-ecosystem-zwave'","cargo": {"args": ["test","--no-run","--bin=sockt-ecosystem-zwave","--package=sockt-ecosystem-zwave"],"filter": {"name": "sockt-ecosystem-zwave","kind": "bin"}},"args": [],"cwd": "${workspaceFolder}"}]}
{"recommendations": ["cab404.vscode-direnv","rust-lang.rust-analyzer","esbenp.prettier-vscode"]}
imports_granularity = "Crate"newline_style = "Unix"group_imports = "StdExternalCrate"tab_spaces = 2
.pijul.git.DS_Store.direnv/.local/target/
.pijul.git.DS_Store.direnv/.local/target/
use flakePATH_add tools
root = true[*]end_of_line = lfinsert_final_newline = trueindent_size = 2indent_style = space