Skip to content

Commit

Permalink
fix: iterate all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
anthr76 authored Apr 8, 2024
1 parent 0e21cdb commit 2debc70
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions modules/home-manager/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Add your reusable home-manager modules to this directory, on their own file (https://nixos.wiki/wiki/Module).
# These should be stuff you would like to share with others, not your personal configurations.
let
modulesPerFile = {
fonts = import ./fonts.nix;
};

{
# List your module files here
fonts = import ./fonts.nix;
}
default = { ... }: {
imports = builtins.attrValues modulesPerFile;
};
in
modulesPerFile // { inherit default; }

0 comments on commit 2debc70

Please sign in to comment.