Skip to content

Commit

Permalink
nix_health: add comments and improve msgs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsrohitsingh682 committed Oct 8, 2024
1 parent b68077e commit 1b92c1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/nix_health/src/check/shell_configurations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ impl Checkable for ShellConfigurations {
fn check(&self, _: &info::NixInfo, _: Option<&nix_rs::flake::url::FlakeUrl>) -> Vec<Check> {
let check = Check {
title: "Shell Configurations".to_string(),
info: "Shell Configurations are managed by Nix".to_string(),
info: "are dotfiles managed by Nix ?".to_string(),
result: if check_shell_configuration() {
CheckResult::Green
} else {
CheckResult::Red {
msg: "Shell Configurations".into(),
msg: "Shell Configurations are not managed by Nix".into(),
suggestion: "Manage shell configurations through https://github.com/juspay/nixos-unified-template".into(),
}
},
Expand All @@ -32,7 +32,7 @@ fn check_shell_configuration() -> bool {
let mut shell_dotfiles = HashMap::new();
shell_dotfiles.insert("zsh", vec![".zshrc"]);
shell_dotfiles.insert("bash", vec![".bashrc", ".bash_profile", ".profile"]);
//
// Check if shell configurations (zsh or bash) are managed by Nix
are_shell_dotfiles_nix_managed("zsh", &shell_dotfiles)
|| are_shell_dotfiles_nix_managed("bashrc", &shell_dotfiles)
}
Expand Down

0 comments on commit 1b92c1c

Please sign in to comment.