Skip to content

Commit 9e4fc2b

Browse files
pcasarettoclaude
andcommitted
feat: add flake-schemas compatibility with backwards compatibility
- Migrate to flake-schemas recognized homeModules format - Add backwards compatibility for homeManagerModules with deprecation warning - Maintains full compatibility while encouraging standard naming 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5d91ba0 commit 9e4fc2b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

flake.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
1212

1313
flake = {
14-
homeManagerModules.default = { config, lib, pkgs, ... }:
14+
homeModules.default = { config, lib, pkgs, ... }:
1515
with lib;
1616
let
1717
cfg = config.programs.try;
@@ -47,6 +47,11 @@
4747
'';
4848
};
4949
};
50+
51+
# Backwards compatibility - deprecated
52+
homeManagerModules.default = builtins.trace
53+
"WARNING: homeManagerModules is deprecated and will be removed in a future version. Please use homeModules instead."
54+
inputs.self.homeModules.default;
5055
};
5156

5257
perSystem = { config, self', inputs', pkgs, system, ... }: {

0 commit comments

Comments
 (0)