Skip to content

Commit

Permalink
Merge pull request #26 from DeterminateSystems/home-modules
Browse files Browse the repository at this point in the history
Rename homeManagerModules to homeModules
  • Loading branch information
lucperkins authored Jul 25, 2024
2 parents 15b2e97 + a357855 commit df1b11c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Install and manage Determinate Nix.
inherit pkgs;
modules = [
nix.homeManagerModules.default
nix.homeModules.default
];
};
}
Expand Down
6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
};
};

homeManagerModules.default = { lib, config, pkgs, ... }: {
homeModules.default = { lib, config, pkgs, ... }: {
nix = {
package = self.packages.${pkgs.stdenv.system}.default;

Expand All @@ -150,5 +150,9 @@
};
};
};

# homeModules is preferred but this ensures compatibility for anyone
# currently using nix.homeManagerModules.default in their config
homeManagerModules.default = self.homeModules.default;
};
}
2 changes: 1 addition & 1 deletion tests/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
pkgs = nixpkgs.legacyPackages.x86_64-linux;

modules = [
nix.homeManagerModules.default
nix.homeModules.default
{
home.stateVersion = "23.11";
home.username = "example";
Expand Down

0 comments on commit df1b11c

Please sign in to comment.