From 46ac71aa245549965a3d9dfdabf6421b39f62289 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Wed, 31 Mar 2021 13:14:10 +0300 Subject: Add dry activate argument. --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index d87702f..75ea2b7 100644 --- a/flake.nix +++ b/flake.nix @@ -90,7 +90,11 @@ # work around https://github.com/NixOS/nixpkgs/issues/73404 cd /tmp - $PROFILE/bin/switch-to-configuration switch + if [[ $DRY_ACTIVATE == "1" ]]; then + $PROFILE/bin/switch-to-configuration dry-activate + else + $PROFILE/bin/switch-to-configuration switch + fi # https://github.com/serokell/deploy-rs/issues/31 ${with base.config.boot.loader; -- cgit v1.2.3