nix

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPackageConflict = errors.New("package exists in fleek and nix profile")

Functions

func CheckNix

func CheckNix() bool

CheckNix verifies that the nix command is available in user's PATH

Types

type Data

type Data struct {
	Config   *core.Config
	UserName string
	Home     string
	Bling    *core.Bling
}

type Flake

type Flake struct {
	RootDir   string
	Templates *template.Template
	Config    *core.Config
}

func NewFlake

func NewFlake(root string, config *core.Config) (*Flake, error)

func (*Flake) Apply

func (f *Flake) Apply() ([]byte, error)

func (*Flake) Check

func (f *Flake) Check() ([]byte, error)

func (*Flake) Exists

func (f *Flake) Exists() (bool, error)

Exist verifies that the Flake directory exists

func (*Flake) GC

func (f *Flake) GC() ([]byte, error)

func (*Flake) Init

func (f *Flake) Init(force bool) error

Init writes the first flake configuration

func (*Flake) PackageIndex

func (f *Flake) PackageIndex() ([]byte, error)

func (*Flake) Update

func (f *Flake) Update() ([]byte, error)

func (*Flake) Write

func (f *Flake) Write(includeSystems bool) error

Write writes the applied flake configuration

Jump to

Keyboard shortcuts

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