aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authornotgne22021-02-08 15:28:31 -0700
committernotgne22021-02-08 15:28:31 -0700
commit64f84aaf87b8771cd8050d932c96400df9ccd75b (patch)
tree044b1bad348b560c0e80dd11faa8af41e3beb03f /flake.nix
parent4f4c1e3cf7c9bc13a1dfd7d0035696cf6e7eaeb6 (diff)
Work around NixOS/nixpkgs#73404 by `cd`-ing into `/tmp` during NixOS activation
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index df480e5..d87702f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -87,6 +87,9 @@
};
nixos = base: custom base.config.system.build.toplevel ''
+ # work around https://github.com/NixOS/nixpkgs/issues/73404
+ cd /tmp
+
$PROFILE/bin/switch-to-configuration switch
# https://github.com/serokell/deploy-rs/issues/31