nix

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

package nix contains nix related actions

Index

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

func ActionChannelPackages() carapace.Action

ActionChannelPackages completes local channels and their packages

nixos.g++
nixos.gacutil

func ActionConfigKeys

func ActionConfigKeys() carapace.Action

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 ActionConfigValues

func ActionConfigValues(key string) carapace.Action

ActionConfigValues completes config values for given key

false
true

func ActionDevShells added in v1.0.2

func ActionDevShells(flake string) carapace.Action

ActionDevShells completes development shells from given flake

func ActionFlakeAttributes added in v1.2.0

func ActionFlakeAttributes(flake string) carapace.Action

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

func ActionFlakeRefs() carapace.Action

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

func ActionFlakes() carapace.Action

ActionFlakes completes flakes currently available

nixops
nixpkgs

func ActionInstallables added in v1.0.2

func ActionInstallables() carapace.Action

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

func ActionLocalChannels() carapace.Action

ActionLocalChannels completes local channels

nixos (https://nixos.org/channels/nixos-22.05)
nixpkgs (https://nixos.org/channels/nixpkgs-unstable)

func ActionNarFileContents

func ActionNarFileContents(file string) carapace.Action

ActionNarFileContents completes contents of given nar file

go.mod
cmd/

func ActionPackages

func ActionPackages(channel string) carapace.Action

ActionPackages completes packages for given channel

g++
gacutil

func ActionPaths

func ActionPaths() carapace.Action

ActionPaths completes paths

A path can be one of:

func ActionRemoteChannels

func ActionRemoteChannels() carapace.Action

ActionRemoteChannels completes remote channels

nixos-21.11-small (unmaintained)
nixos-22.05 (stable)

func ActionTemplates added in v1.0.2

func ActionTemplates() carapace.Action

ActionTemplates completes the templates outputs of the system template flake

Types

type AttributeOpts

type AttributeOpts struct {
	Source  string
	Include string
	Arg     []string
	ArgStr  []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL