1
Fork 0

there is a 10% chance this works

This commit is contained in:
caem 2025-01-23 14:46:22 +01:00
parent 73ff73d1e5
commit f86f926ec4
Signed by: caem
GPG key ID: 69A830D03203405F
3 changed files with 14 additions and 3 deletions

View file

@ -5,7 +5,7 @@
path: let
dirs = builtins.readDir path;
in
builtins.filter (name: dirs.${name} == "directory") (builtins.attrNames dirs);
builtins.filter (type: dirs.${type} == "directory") (builtins.attrNames dirs);
getModuleImports =
path: let

View file

@ -1,6 +1,12 @@
{ lib, ... }:
{ lib, inputs, ... }:
{
let
importOverlays = builtins.map
(overlay: overlay { inherit lib inputs; })
(builtins.filter
(file: builtins.match file "*.nix")
(lib.filesystem.listFilesRecursive ../../../overlays));
in {
nix = {
settings = {
auto-optimise-store = true;
@ -18,5 +24,6 @@
allowUnfree = true;
};
hostPlatform = lib.mkDefault "x86_64-linux";
overlays = importOverlays;
};
}

View file

@ -0,0 +1,4 @@
{ inputs }:
(final: prev: {
unstable = inputs.nixpkgs-unstable.legacyPackages.${prev.system};
})