nix settings
Last updated
Was this helpful?
Last updated
Was this helpful?
Allow managing .
nix is only available for Linux and MacOS.
pkgs
allow to install some (see ).
You need to specify the name of the packages to install.
2 ways to install nix packages:
by name, equivalent to:
by attribute (recommended), equivalent to:
True
to enable
, False
to skip (default to False
).
attr
is not mandatory but allow to specify specific attribute like python3Full
.
opts
is not mandatory but allows to pass extra args.
It uses the -I
option of nix-env
(man nix-env
):
Example:
This is equivalent to:
nix:pkgs:opts:global
: allow passing arguments to all nix packages when installing, updating, or uninstalling a package
nix:pkgs:<mypkg>:opts:global
: allow passing arguments to <mypkg>
nix package when installing, updating, or uninstalling the package
Extra args can be arguments described in the or can be .
is not an official Saltstack states but a custom states written for VSCode-Anywhere.
nix:pkgs:opts:install
: allow passing arguments to all nix packages when installing a package (cf function)
nix:pkgs:opts:update
: allow passing arguments to all nix packages when updating a package (cf function)
nix:pkgs:opts:uninstall
: allow passing arguments to all nix packages when uninstalling a package (cf function)
nix:pkgs:<mypkg>:opts:install
: allow passing arguments to <mypkg>
nix packages when installing the package (cf function)
nix:pkgs:<mypkg>:opts:update
: allow passing arguments to <mypkg>
nix packages when updating the package (cf function)
nix:pkgs:<mypkg>:opts:uninstall
: allow passing arguments to <mypkg>
nix packages when uninstalling the package (cf function)