mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 16:23:57 +01:00
feat(nix): Remove .nix from module outputs
This commit is contained in:
parent
44422516d4
commit
e84d3bbf02
11
flake.nix
11
flake.nix
@ -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);
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user