mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-06 16:57:03 +00:00
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
This commit is contained in:
parent
69dfc316c5
commit
5cfbf5cc37
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue