Documentation
¶
Overview ¶
package nix contains nix related actions
Index ¶
- func ActionAttributes(opts AttributeOpts) carapace.Action
- func ActionChannelPackages() carapace.Action
- func ActionConfigKeys() carapace.Action
- func ActionConfigValues(key string) carapace.Action
- func ActionDevShells(flake string) carapace.Action
- func ActionFlakeAttributes(flake string) carapace.Action
- func ActionFlakeRefs() carapace.Action
- func ActionFlakes() carapace.Action
- func ActionInstallables() carapace.Action
- func ActionLocalChannels() carapace.Action
- func ActionNarFileContents(file string) carapace.Action
- func ActionPackages(channel string) carapace.Action
- func ActionPaths() carapace.Action
- func ActionRemoteChannels() carapace.Action
- func ActionTemplates() carapace.Action
- type AttributeOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionAttributes ¶
func ActionAttributes(opts AttributeOpts) carapace.Action
ActionAttributes completes attributes
firefox git
func ActionChannelPackages ¶
ActionChannelPackages completes local channels and their packages
nixos.g++ nixos.gacutil
func ActionConfigKeys ¶
ActionConfigKeys completes config keys
access-tokens (Access tokens used to access protected GitHub, GitLab, or other locations) allow-dirty (Whether to allow dirty Git/Mercurial trees)
func ActionDevShells ¶ added in v1.0.2
ActionDevShells completes development shells from given flake
func ActionFlakeAttributes ¶ added in v1.2.0
ActionFlakeAttributes completes attributes on a flake Completions are only supplied for local flakes or flakes in the registry.
hello packages.x86_64-linux.hello
func ActionFlakeRefs ¶ added in v1.2.0
ActionFlakeRefs completes a full flake reference It will only complete attributes for local flakes or flakes in the flake registry.
nixpkgs#hello .#foo
func ActionFlakes ¶ added in v1.0.2
ActionFlakes completes flakes currently available
nixops nixpkgs
func ActionInstallables ¶ added in v1.0.2
ActionInstallables completes nix packages and flakes
An installable nix derivation can either be a nix package (legacyPackages) or a nixosModules output of a flake. There is no completion support implemented for flake outputs due to the processing time required, so ActionInstallables completes packages from the global/system/user channels available and flake names from the global/system/user registry
func ActionLocalChannels ¶
ActionLocalChannels completes local channels
nixos (https://nixos.org/channels/nixos-22.05) nixpkgs (https://nixos.org/channels/nixpkgs-unstable)
func ActionPaths ¶
ActionPaths completes paths
A path can be one of:
- a local file path (default.nix)
- an http/https URL (https://releases.nixos.org/../nixexprs.tar.xz
- a channel: specifier (channel:nixos-22.05)
- a local channel (<nixpkgs>)
func ActionRemoteChannels ¶
ActionRemoteChannels completes remote channels
nixos-21.11-small (unmaintained) nixos-22.05 (stable)
func ActionTemplates ¶ added in v1.0.2
ActionTemplates completes the templates outputs of the system template flake