feat(nix): Remove .nix from module outputs

This commit is contained in:
Donovan Glover 2024-03-31 20:23:59 -04:00
parent 44422516d4
commit e84d3bbf02
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -41,7 +41,16 @@
builtins.mapAttrs (name: value: callPackage ./packages/${name}) (builtins.readDir ./packages);
overlays = builtins.mapAttrs (name: value: import ./overlays/${name}) (builtins.readDir ./overlays);
nixosModules = builtins.mapAttrs (name: value: import ./modules/${name}) (builtins.readDir ./modules);
nixosModules =
(builtins.listToAttrs
(builtins.map
(string: {
name = builtins.replaceStrings [".nix"] [""] string;
value = import ./modules/${string}; })
(builtins.attrNames
(builtins.readDir ./modules))));
homeManagerModules = builtins.mapAttrs (name: value: import ./home/${name}) (builtins.readDir ./home);
};
}