Flake : Use ls for overlays.

This commit is contained in:
Dmitry Voronin 2024-04-17 12:52:12 +03:00
parent de67ac3508
commit dcbb6c23c7
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 11 additions and 13 deletions

View file

@ -115,9 +115,7 @@
)
);
in {
imports = (ls ./module/common) ++ [
./user/Root.nix
];
imports = (ls ./module/common) ++ (ls ./overlay) ++ [ ./user/Root.nix ];
};
# Function to create a host.

View file

@ -1,12 +1,12 @@
{ ... }: {
nixpkgs.overlays = [ (final: prev: {
yt-dlp = prev.yt-dlp.overrideAttrs (old: {
src = prev.fetchFromGitHub {
owner = "yt-dlp";
repo = "yt-dlp";
rev = "2024.03.10";
hash = "sha256-A6uciGErM4QgLrY5jMFGlPV2uH9O2cOhj5+IapyjVo0 = ";
};
});
})];
# nixpkgs.overlays = [ (final: prev: {
# yt-dlp = prev.yt-dlp.overrideAttrs (old: {
# src = prev.fetchFromGitHub {
# owner = "yt-dlp";
# repo = "yt-dlp";
# rev = "2024.03.10";
# hash = "sha256-A6uciGErM4QgLrY5jMFGlPV2uH9O2cOhj5+IapyjVo0 = ";
# };
# });
# })];
}