npingler-switch(1)

๐Ÿ“ฆ
version 0.6.0 ยท 2 versions
, in nixpkgs unstable

๐Ÿ’… npingler-switch โ€” NAME

okay so bestie, welcome to npingler-switch, a page from the General Commands Manual that's about to become your new obsession โœจ

npingler-switch โ€” build the current profile and switch to it (alias: install) ๐ŸŽ€


โœจ SYNOPSIS โœจ

npingler switch [--hostname] [--profile] [--diff-derivations]
[--pin-registry-root] [--root-registry-path] [--pin-channels-root]
[--root-profile] [--extra-nix-args] [--extra-nix-build-args]
[--extra-nix-eval-args] [--extra-nix-env-set-args] [--config] [--file]
[--log-filter] [--debug] [-v|--verbose] [--dry] [-h|--help]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

Build the current profile and switch to it (alias: install) ๐Ÿ’–

that's literally it, that's the whole vibe. build it, switch to it, slay ๐Ÿ‘‘


๐Ÿซถ OPTIONS ๐Ÿซถ

  • --hostname <HOSTNAME> โ€” the hostname you're building the configuration for ๐Ÿ 

this one corresponds to the `npingler.${hostname}` output attribute in your flake. also, you can set it with the HOSTNAME environment variable too, iykyk.

  • --config <CONFIG> โ€” path to the configuration file you wanna use ๐Ÿ“„

defaults to `~/.config/npingler/config.toml` โœจ

  • --file <FILE> โ€” path or directory that's holding your npingler Nix expressions ๐Ÿ“

defaults to the --config directory.

  • -h, --help โ€” print help (see a summary with -h) ๐Ÿ™ˆ

๐Ÿฆ‹ NIX PROFILE OPTIONS ๐Ÿฆ‹

  • --profile <PROFILE> โ€” the profile to use for `nix profile` operations ๐Ÿ’ซ

may also be specified with the NIX_PROFILE environment variable.

  • --diff-derivations <DIFF_DERIVATIONS> โ€” a command, like nix-diff or nvd, to use to diff derivations ๐Ÿ”

this will be executed to display a diff of the changes being made to your profile before building it. no cap, it shows you what's about to change.

this may contain shell-quoted arguments ๐Ÿš


๐Ÿงš NIX REGISTRY OPTIONS ๐Ÿงš

  • --pin-registry-root <PIN_REGISTRY_ROOT> โ€” pin Nix Flake registry entries for the root user ๐Ÿ“Œ

[possible values: true, false]

  • --root-registry-path <ROOT_REGISTRY_PATH> โ€” the Nix Flake registry path for the root user, defaults to `/etc/nix/registry.json` ๐Ÿ—‚๏ธ

may also be specified with the ROOT_NIX_REGISTRY environment variable.


๐Ÿ’œ NIX CHANNEL OPTIONS ๐Ÿ’œ

  • --pin-channels-root <PIN_CHANNELS_ROOT> โ€” pin Nix channels for the root user ๐Ÿ“

[possible values: true, false]

  • --root-profile <ROOT_PROFILE> โ€” the root user's Nix profile path ๐Ÿ‘‘

defaults to `/nix/var/nix/profiles/per-user/root/channels`

may also be specified with the ROOT_NIX_PROFILE environment variable.


๐Ÿ”ฅ NIX COMMAND ARG OPTIONS ๐Ÿ”ฅ

  • --extra-nix-args <EXTRA_NIX_ARGS> โ€” extra args for nix invocations ๐Ÿงฐ

this is for all nix binary ("nix3") invocations, but does not apply to (e.g.) nix-env. read that again bestie, it's giving "specific".

  • --extra-nix-build-args <EXTRA_NIX_BUILD_ARGS> โ€” extra args for nix build invocations ๐Ÿ—๏ธ

note this is NOT for nix-build, which we do not invoke. periodt.

  • --extra-nix-eval-args <EXTRA_NIX_EVAL_ARGS> โ€” extra args for nix eval invocations ๐Ÿงฎ
  • --extra-nix-env-set-args <EXTRA_NIX_ENV_SET_ARGS> โ€” extra args for nix-env --set invocations ๐ŸŽ›๏ธ

๐ŸŒˆ LOGGING OPTIONS ๐ŸŒˆ

  • --log-filter <LOG_FILTER> โ€” tracing log filter ๐Ÿชต

see this, it's the whole lore:

https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives

may also be specified with the NPINGLER_LOG environment variable.

  • --debug โ€” alias for `--log-filter=trace` ๐Ÿ›
  • -v, --verbose โ€” alias for `--log-filter=debug` ๐Ÿ—ฃ๏ธ
  • --dry โ€” don't actually change the configuration ๐ŸงŠ
fr fr, this one means it's a dry run โ€” nothing gets touched, bestie. zero chaos.

and that's the whole page, no crumbs left ๐Ÿ’… this was switch (the source/version bit) from the npingler-switch(1) manual, and the date on this beauty is right there in the footer โ€” mwah, go build something iconic ๐ŸŽ€โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from