Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
feat: if FLEEK_DEBUG is set, pass --show-trace to nix on apply (#328)
Browse files Browse the repository at this point in the history
Co-authored-by: Joey Smith <joey@hoodoo.digital>
  • Loading branch information
tml and joey-hoodoo authored Nov 24, 2023
1 parent 7e9b0d2 commit a36ebf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/flake/flake.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
app "github.com/ublue-os/fleek"
"github.com/ublue-os/fleek/fin"
"github.com/ublue-os/fleek/internal/cmdutil"
"github.com/ublue-os/fleek/internal/debug"
"github.com/ublue-os/fleek/internal/fleek"
)

Expand Down Expand Up @@ -565,6 +566,9 @@ func (f *Flake) Apply() error {
return err
}
applyCmdLine := []string{"run", "--no-write-lock-file", "--impure", "home-manager/master", "--", "-b", "bak", "switch", "--flake", ".#" + user + "@" + host}
if debug.IsEnabled() {
applyCmdLine = append(applyCmdLine, "--show-trace")
}
err = f.runNix(nixbin, applyCmdLine)
if err != nil {
return err
Expand Down

0 comments on commit a36ebf1

Please sign in to comment.