From 2f3bb8560fddb51acd2d726d2bcd342002952add Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Thu, 25 Jul 2024 12:41:38 -0700 Subject: [PATCH 1/2] Rename homeManagerModules to homeModules --- README.md | 2 +- flake.nix | 2 +- tests/flake.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 040e70503..5fa1b994e 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Install and manage Determinate Nix. inherit pkgs; modules = [ - nix.homeManagerModules.default + nix.homeModules.default ]; }; } diff --git a/flake.nix b/flake.nix index d547a9925..11aab75cd 100644 --- a/flake.nix +++ b/flake.nix @@ -126,7 +126,7 @@ }; }; - homeManagerModules.default = { lib, config, pkgs, ... }: { + homeModules.default = { lib, config, pkgs, ... }: { nix = { package = self.packages.${pkgs.stdenv.system}.default; diff --git a/tests/flake.nix b/tests/flake.nix index 07a6f4085..2819b50ea 100644 --- a/tests/flake.nix +++ b/tests/flake.nix @@ -31,7 +31,7 @@ pkgs = nixpkgs.legacyPackages.x86_64-linux; modules = [ - nix.homeManagerModules.default + nix.homeModules.default { home.stateVersion = "23.11"; home.username = "example"; From a3578557e0ce5b59dd002f6d7b22eea63a676204 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Thu, 25 Jul 2024 12:47:49 -0700 Subject: [PATCH 2/2] Ensure compatibility with homeManagerModules name --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index 11aab75cd..a1ee631f7 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }; }