Skip to content

Commit c0356b6

Browse files
committed
fix(nh): disable sudo elevation for home switch
nh home switch is pure user-space; NH_ELEVATION_STRATEGY=none prevents sudo from being called in a non-tty context (e.g. when stdout is piped through nix-output-monitor), which caused spurious "unable to read password" warnings at the end of every switch.
1 parent 0287399 commit c0356b6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

modules/core.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ lib.mkMerge [
6565
# https://docs.determinate.systems/guides/telemetry/
6666
NIX_SENTRY_ENDPOINT = "";
6767
DETSYS_IDS_TELEMETRY = "disabled";
68+
# nh home switch is pure user-space; no sudo needed
69+
NH_ELEVATION_STRATEGY = "none";
6870
};
6971
file = {
7072
".config/parallel/will-cite" = {

0 commit comments

Comments
 (0)