summaryrefslogtreecommitdiff
path: root/src/command.rs
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-03-13 20:32:42 -0400
committerSeth Flynn <[email protected]>2025-03-13 20:33:06 -0400
commit7443543d8b672dc8053f3a4dde5e9bde040672cc (patch)
tree743d5c1b029b65e817228b3fece5c7780b263245 /src/command.rs
parent910585c5f1de6ad3c750f3a023cf17ae4381341a (diff)
feat: home-manager configuration support
Closes https://github.com/getchoo/nix-forecast/issues/59
Diffstat (limited to 'src/command.rs')
-rw-r--r--src/command.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command.rs b/src/command.rs
index be1dd4c..3d630ca 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -19,7 +19,10 @@ impl Run for crate::Cli {
resolve_installables(installables).await?
} else if let Some(configuration) = &self.configuration {
println!("❓ Indexing requisites of configuration closure");
- nix::configuration_closure_paths(configuration)?
+ nix::system_configuration_closure_paths(configuration)?
+ } else if let Some(home) = &self.home {
+ println!("❓ Indexing requisites of home configuration closure");
+ nix::home_configuration_closure_paths(home)?
} else {
println!("❓ Indexing all installables of flake `{}`", self.flake);
let installables = nix::all_flake_installables(&self.flake)?;