DISNIX-BACKDOOR-CLIENT(1)

πŸ“¦ version 0.9.4, in nixos 26.05, nixpkgs unstable

πŸŽ€ DISNIX-BACKDOOR-CLIENT(1) β€” disnix-backdoor-client manual from User Commands, bestie πŸŽ€

🌸 NAME 🌸

disnix-backdoor-client β€” provides access to the disnix-service through a socket with public access. That’s the name-section vibe, and it ate. πŸ’…

✨ SYNOPSIS ✨

Here’s the exact shape, no cap:

disnix-backdoor-client --target socat_address operation [OPTION] [paths]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so disnix-backdoor-client gives you remote access to a disnix-service instance running on a machine in the network by using an insecure socket with public access. Yes, bestie, insecure is literally in the original 😭. This tool is designed for use with disnixos-vm-env to automatically deploy a system in a network of virtual machines.

In most cases this command is not used directly. Instead, it’s used by specifying the --interface option for a Disnix command-line utility (such as disnix-env) or by setting the DISNIX_CLIENT_INTERFACE environment variable. By using one of those properties, the Disnix tools will use the given interface instead of the standard disnix-client, which only provides loopback access. Iconic indirection, honestly. 🫢

⚠️ The page says insecure socket with public access, so let’s not pretend that’s a security flex. It’s the whole backdoor-client vibe, periodt.

πŸ’… OPTIONS πŸ’…

Pick your operation, then add the options that match. Everything below is exactly what the page says β€” I’m just adding sparkle. ✨

πŸ”₯ Operations:

  • --import β€” Imports a given closure into the Nix store of the target machine. Optionally, it transfers the closure from this machine to the target machine. πŸŽ€
  • --export β€” Exports the closure of a given Nix store path of the target machine into a file, and optionally downloads it. πŸ¦‹
  • --print-invalid β€” Prints all the paths that are not valid in the Nix store of the target machine. πŸ’…
  • -r, --realise β€” Realises the given store derivation on the target machine. πŸ”₯
  • --set β€” Creates a Disnix profile only containing the given derivation on the target machine. πŸ‘‘
  • -q, --query-installed β€” Queries all the installed services on the given target machine. πŸ’–
  • --query-requisites β€” Queries all the requisites (intra-dependencies) of the given services on the target machine. 🌈
  • --collect-garbage β€” Collects garbage on the given target machine. πŸ’€
  • --activate β€” Activates the given service on the target machine. ⭐
  • --deactivate β€” Deactivates the given service on the target machine. πŸ™ˆ
  • --lock β€” Acquires a lock on a Disnix profile of the target machine. πŸ”’
  • --unlock β€” Release the lock on a Disnix profile of the target machine. πŸ”“
  • --snapshot β€” Snapshots the logical state of a component on the given target machine. πŸ“Έ
  • --restore β€” Restores the logical state of a component on the given target machine. 🧚
  • --delete-state β€” Deletes the state of a component on the given machine. πŸ“
  • --query-all-snapshots β€” Queries all available snapshots of a component on the given target machine. πŸ’œ
  • --query-latest-snapshot β€” Queries the latest snapshot of a component on the given target machine. ✨
  • --print-missing-snapshots β€” Prints the paths of all snapshots not present on the given target machine. 😭
  • --import-snapshots β€” Imports the specified snapshots into the remote snapshot store. 🎁
  • --export-snapshots β€” Exports the specified snapshot to the local snapshot store. πŸ¦‹
  • --resolve-snapshots β€” Converts the relative paths to the snapshots to absolute paths. 🌸
  • --clean-snapshots β€” Removes older snapshots from the snapshot store. 🧹
  • --capture-config β€” Captures the configuration of the machine from the Dysnomia container properties in a Nix expression. πŸ‘‘
  • --help β€” Shows the usage of this command to the user. 🫢
  • --version β€” Shows the version of this command to the user. πŸ’–

🌟 General options:

  • -t, --target=TARGET β€” Specifies the hostname and optional port number of the SSH server used to connect to the target machine. 🌈

🎁 Import/Export/Import snapshots/Export snapshots options:

  • --localfile β€” Specifies that the given paths are stored locally and must be transferred to the remote machine if needed. πŸŽ€
  • --remotefile β€” Specifies that the given paths are stored remotely and must be transferred from the remote machine if needed. πŸ¦‹

🧸 Set/Query installed/Lock/Unlock options:

  • -p, --profile=PROFILE β€” Name of the Disnix profile. Defaults to: default. πŸ’…

πŸ’€ Collect garbage options:

  • -d, --delete-old β€” Indicates whether all older generations of Nix profiles must be removed as well. πŸ”₯

🧚 Activation/Deactivation/Snapshot/Restore/Delete state options:

  • --type=TYPE β€” Specifies the activation module that should be used, such as echo or process. ⭐
  • --arguments=ARGUMENTS β€” Specifies the arguments passed to the Dysnomia module, which is a string with key=value pairs. πŸŽ€
  • --container=CONTAINER β€” Name of the container in which the component is managed. If omitted it will default to the same value as the type. 🌸

πŸ“ Query all snapshots/Query latest snapshot options:

  • -C, --container=CONTAINER β€” Name of the container in which the component is managed. πŸ’œ
  • -c, --component=COMPONENT β€” Name of the component hosted in a container. πŸ¦‹

🌈 Clean snapshots options:

  • --keep=NUM β€” Amount of snapshot generations to keep. Defaults to: 1. ✨
  • -C, --container=CONTAINER β€” Name of the container to filter on. πŸŽ€
  • -c, --component=COMPONENT β€” Name of the component to filter on. πŸ’…

🌱 ENVIRONMENT 🌱

  • DISNIX_REMOTE_CLIENT β€” Name of the remote executable to run to execute a deployment activity (defaults to: disnix-run-activity). 🫢
  • DISNIX_PROFILE β€” Sets the name of the profile that stores the manifest on the coordinator machine and the deployed services per machine on each target (Defaults to: default). πŸ’–
  • DYSNOMIA_STATEDIR β€” Specifies where the snapshots must be stored on the coordinator machine (defaults to: /var/state/dysnomia). 🌸

Copyright Β© 2008-2022 Sander van der Burg


πŸ’– And that’s the whole manual, bestie. The footer’s source/version is disnix..., dated January 1980, for DISNIX-BACKDOOR-CLIENT(1). Bye and slay responsibly! πŸ’–

πŸ“¦ where this page comes from