From 2760046f34780cc72f67e06240ccf6a7a3ae3765 Mon Sep 17 00:00:00 2001 From: Tobor <102221758+ToborWinner@users.noreply.github.com> Date: Sun, 30 Mar 2025 16:39:15 +0200 Subject: [PATCH] docs: correct improper import of home.nix (#6732) This change improves the module system's error messages. --- docs/manual/nix-flakes/nix-darwin.md | 2 +- docs/manual/nix-flakes/nixos.md | 2 +- templates/nix-darwin/flake.nix | 2 +- templates/nixos/flake.nix | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/manual/nix-flakes/nix-darwin.md b/docs/manual/nix-flakes/nix-darwin.md index 133d91793..e4cbf43d7 100644 --- a/docs/manual/nix-flakes/nix-darwin.md +++ b/docs/manual/nix-flakes/nix-darwin.md @@ -25,7 +25,7 @@ to that of NixOS. The `flake.nix` would be: { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.users.jdoe = import ./home.nix; + home-manager.users.jdoe = ./home.nix; # Optionally, use home-manager.extraSpecialArgs to pass # arguments to home.nix diff --git a/docs/manual/nix-flakes/nixos.md b/docs/manual/nix-flakes/nixos.md index 71a3e33c7..1e7f21e34 100644 --- a/docs/manual/nix-flakes/nixos.md +++ b/docs/manual/nix-flakes/nixos.md @@ -23,7 +23,7 @@ be as follows: { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.users.jdoe = import ./home.nix; + home-manager.users.jdoe = ./home.nix; # Optionally, use home-manager.extraSpecialArgs to pass # arguments to home.nix diff --git a/templates/nix-darwin/flake.nix b/templates/nix-darwin/flake.nix index ff73efd8f..5fbbc655f 100644 --- a/templates/nix-darwin/flake.nix +++ b/templates/nix-darwin/flake.nix @@ -19,7 +19,7 @@ { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.users.jdoe = import ./home.nix; + home-manager.users.jdoe = ./home.nix; # Optionally, use home-manager.extraSpecialArgs to pass # arguments to home.nix diff --git a/templates/nixos/flake.nix b/templates/nixos/flake.nix index fd4d0cd47..845f04834 100644 --- a/templates/nixos/flake.nix +++ b/templates/nixos/flake.nix @@ -17,7 +17,7 @@ { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.users.jdoe = import ./home.nix; + home-manager.users.jdoe = ./home.nix; # Optionally, use home-manager.extraSpecialArgs to pass # arguments to home.nix