DISNIX-SSH-CLIENT(1)
π DISNIX-SSH-CLIENT(1) β¨
okay so this is a User Commands page for disnix-ssh-client, and bestie, it's a whole vibe. buckle up π
πΈ NAME πΈ
disnix-ssh-client β it literally gives you access to the disnix-service through a SSH interface, no cap π¦
β¨ SYNOPSIS β¨
disnix-ssh-client --target hostname[:port] operation [OPTION] [paths]
π DESCRIPTION π
okay so listen π the command disnix-ssh-client hooks you up with remote access to a disnix-service instance that's running on a machine somewhere in the network, and it does it by using a SSH connection. so basically you can do remote deployment operations on a target machine through SSH and honestly? iconic.
because this command uses ssh to connect to the target machine, you have to provide a password for every single operation. yeah. every one. π if that bothers you (and like, fair), go look at ssh-agent β it's the self-care this workflow deserves π«Ά
in most cases you're not even using this command directly, ngl. 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-run-activity, which only provides local access. the more you know β
π₯ OPTIONS π₯
π 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 that only contains 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β releases 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--shellβ spawns a Dysnomia shell to run arbitrary maintenance tasks π§--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/Shell options:
--type=TYPEβ specifies the activation module that should be used, such asechoorprocess.--arguments=ARGUMENTSβ specifies the arguments passed to the Dysnomia module, which is a string withkey=valuepairs--container=CONTAINERβ name of the container in which the component is managed. if omitted it will default to the same value as thetype.
π Shell options:
--command=COMMANDβ commands to execute in the shell session
πΈ 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 π±
SSH_USERβ username that should be used to connect to remote machinesSSH_OPTSβ additional properties which are passed to thesshcommandDISNIX_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 π
Copyright Β© 2008-2022 Sander van der Burg
okay that's the whole page bestie, you ate π
β¨ this is disnix-ssh-client from disnix 0.10.2, dated January 1980 (yes really, the 80s called π), so go forth and deploy remotely, mwah π«Άπ
π¦ where this page comes from
- nixos 26.05: disnix 0.10.2
- nixpkgs unstable: disnix 0.10.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms