Revert "Do not install apps to nix user profile"

This reverts commit 02dda8bcf9.
This commit is contained in:
Mikhail Klementev 2020-01-03 22:42:27 +00:00
parent 57e15fa0a0
commit e037770c38
No known key found for this signature in database
GPG key ID: BE44DA8C062D87DC

View file

@ -35,7 +35,11 @@ in {
` `
func isPackageExists(name string) bool { func isPackageExists(name string) bool {
return nil == exec.Command("nix-env", "-iA", "--dry-run", name).Run() cmd := exec.Command("nix-env", "-iA", name)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err := cmd.Run()
return err == nil
} }
func nixPath(name string) (path string, err error) { func nixPath(name string) (path string, err error) {