From 5cfbf5cc37a3bd1da07ae84eea1b828909c4456b Mon Sep 17 00:00:00 2001 From: isabel Date: Tue, 18 Feb 2025 02:20:42 +0000 Subject: [PATCH] flake: don't import modules (#6481) since the `imports` attributes of modules allows for paths we can remove the `import` making the consumption of nixosModules, darwinModules and flakeModules cheaper --- flake.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 4b797355e..fdded59de 100644 --- a/flake.nix +++ b/flake.nix @@ -6,21 +6,21 @@ outputs = { self, nixpkgs, ... }: { nixosModules = rec { - home-manager = import ./nixos; + home-manager = ./nixos; default = home-manager; }; # deprecated in Nix 2.8 nixosModule = self.nixosModules.default; darwinModules = rec { - home-manager = import ./nix-darwin; + home-manager = ./nix-darwin; default = home-manager; }; # unofficial; deprecated in Nix 2.8 darwinModule = self.darwinModules.default; flakeModules = rec { - home-manager = import ./flake-module.nix; + home-manager = ./flake-module.nix; default = home-manager; };