nix

package
v0.0.0-...-457f07e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorMalformedClosure = errors.ConstError("closure is malformed")
)

Variables

This section is empty.

Functions

func Build

func Build(path *storepath.StorePath, env []string, ctx context.Context) error

func Config

func Config() (config map[string]string, err error)

func GetNixOSVersion

func GetNixOSVersion() (string, error)

func GetStdErr

func GetStdErr(ctx context.Context) io.Writer

func GetStdOut

func GetStdOut(ctx context.Context) io.Writer

func GetSystem

func GetSystem() (path string, err error)

func IsHostNixOS

func IsHostNixOS() (bool, error)

func IsSystemClosure

func IsSystemClosure(closure *storepath.StorePath) error

func SetStdError

func SetStdError(ctx context.Context, writer io.Writer) context.Context

func SetStdOut

func SetStdOut(ctx context.Context, writer io.Writer) context.Context

func SetSystem

func SetSystem(path *storepath.StorePath, ctx context.Context) error

func Switch

func Switch(closure *storepath.StorePath, action string, ctx context.Context) error

Types

type Info

type Info struct {
	System    string `json:"system"`
	MultiUser bool   `json:"multi-user"`
	Version   string `json:"version"`
}

func GetInfo

func GetInfo() (info *Info, err error)

Jump to

Keyboard shortcuts

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