Do not install apps to nix user profile

This commit is contained in:
Mikhail Klementev 2020-01-03 09:36:39 +00:00
parent 13226a6a79
commit 02dda8bcf9
No known key found for this signature in database
GPG key ID: BE44DA8C062D87DC

View file

@ -35,11 +35,7 @@ in {
` `
func isPackageExists(name string) bool { func isPackageExists(name string) bool {
cmd := exec.Command("nix-env", "-iA", name) return nil == exec.Command("nix-env", "-iA", "--dry-run", name).Run()
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) {