nixos_config/home/packages/nix-init/default_to_package.diff

23 lines
883 B
Diff
Raw Normal View History

2024-07-20 04:40:23 -04:00
diff --git a/src/main.rs b/src/main.rs
index 27e20ec..c76417d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -439,7 +439,7 @@ async fn run() -> Result<()> {
let (out_dir, out_path) = if let Ok(metadata) = metadata(&output) {
if metadata.is_dir() {
- let out_path = output.join("default.nix");
+ let out_path = output.join("package.nix");
if out_path.exists() && ask_overwrite(&mut editor, &out_path)? {
return Ok(());
}
@@ -453,7 +453,7 @@ async fn run() -> Result<()> {
.map_or(false, |out_path| out_path.ends_with_str(b"/"))
{
let _ = create_dir_all(&output);
- (Some(output.as_ref()), output.join("default.nix"))
+ (Some(output.as_ref()), output.join("package.nix"))
} else {
let out_dir = output.parent();
if let Some(out_dir) = out_dir {