diff --git a/home/gaming/default.nix b/home/gaming/default.nix index 18bdf06..18ed1e6 100644 --- a/home/gaming/default.nix +++ b/home/gaming/default.nix @@ -1,5 +1,20 @@ -_: { - imports = [ - ./mangohud.nix - ]; -} +{ lib, ... }: +let + b = builtins; + + module_files = + b.readDir ./. |> + lib.filterAttrs (name: type: + ( (lib.strings.hasSuffix ".nix" name + && name != "default.nix" + && type == "regular" ) + || ( type == "directory" + && b.pathExists ./${name}/default.nix)) + ) |> + b.attrNames |> + b.map (f: ./${f}); +in +{ + imports = module_files; + nixpkgs.config.allowUnfree = true; +} \ No newline at end of file