Skip to content

Commit

Permalink
fix: fix home-manager switch
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jun 22, 2023
1 parent ea005b2 commit 4c722d1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT"
name = "crosup"
readme = "../../README.md"
repository = "https://github.com/tsirysndr/crosup"
version = "0.4.4"
version = "0.4.5"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -17,7 +17,7 @@ anyhow = "1.0.71"
clap = "3.2.20"
crosup-core = {path = "../core", version = "0.1.7"}
crosup-entity = {version = "0.1.0", path = "../entity"}
crosup-installers = {path = "../installers", version = "0.1.7"}
crosup-installers = {path = "../installers", version = "0.1.8"}
crosup-nix = {path = "../nix", version = "0.1.1"}
crosup-repo = {path = "../repo", version = "0.1.0"}
crosup-ssh = {path = "../ssh", version = "0.1.0"}
Expand Down
2 changes: 1 addition & 1 deletion crates/installers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["chromebook", "chromeos", "homebrew", "docker", "nix"]
license = "MIT"
name = "crosup-installers"
repository = "https://github.com/tsirysndr/crosup"
version = "0.1.7"
version = "0.1.8"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
5 changes: 1 addition & 4 deletions crates/installers/src/home_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ impl Installer for HomeManagerInstaller {
let updated_nix_configs = crosup_nix::add_packages(&home_nix_content, packages)?;
fs::write(home_nix, updated_nix_configs)?;

println!("-> Running {}", "home-manager switch".bright_green());
let nix_env = ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh";
let command = format!("{} && home-manager switch", nix_env);
exec_bash_with_output!(command, self.session.clone());
home_manager_switch!(self.session.clone());
}

self.postinstall()?;
Expand Down

0 comments on commit 4c722d1

Please sign in to comment.