aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotgne22021-01-14 13:21:29 -0700
committernotgne22021-01-14 13:21:29 -0700
commit0ca5d41aa6d6738b91f9b57c401cab306fbe2aee (patch)
treee6d99d8b33c8d77a2bf71a8488b1694841b8e097
parent91f505401ef338a04da4a6e7256ea8b801a0a68a (diff)
parent8161b427c6faad61f38264266333a626c8c3ef47 (diff)
Merge branch 'master' into notgne2/cleanup
-rw-r--r--flake.nix9
-rw-r--r--src/bin/activate.rs2
2 files changed, 9 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 4513495..368e627 100644
--- a/flake.nix
+++ b/flake.nix
@@ -80,7 +80,14 @@
];
};
- nixos = base: custom base.config.system.build.toplevel "$PROFILE/bin/switch-to-configuration switch";
+ nixos = base: custom base.config.system.build.toplevel ''
+ $PROFILE/bin/switch-to-configuration switch
+
+ # https://github.com/serokell/deploy-rs/issues/31
+ ${with base.config.boot.loader;
+ pkgs.lib.optionalString systemd-boot.enable
+ "sed -i '/^default /d' ${efi.efiSysMountPoint}/loader/loader.conf"}
+ '';
noop = base: custom base ":";
};
diff --git a/src/bin/activate.rs b/src/bin/activate.rs
index bf8c907..2f13b44 100644
--- a/src/bin/activate.rs
+++ b/src/bin/activate.rs
@@ -318,7 +318,7 @@ pub async fn wait(temp_path: String, closure: String) -> Result<(), WaitError> {
return Ok(());
}
- danger_zone(done, 60).await?;
+ danger_zone(done, 240).await?;
info!("Found canary file, done waiting!");