add overklay

This commit is contained in:
Rongsong Shen 2025-05-22 18:11:45 +08:00
parent a3fb203fa7
commit 44eb1c3ffb
2 changed files with 16 additions and 19 deletions

View file

@ -1,6 +1,15 @@
let
# Import sources
sources = import ./nix/sources.nix;
sources = imports ./nix/sources.nix;
# And return that specific nixpkgs
in sources.nixpkgs
hello = pkgs.writeShellScriptBin "hello" ''
echo "Hello from the Nix channel overlay!"
'';
pkgs = import sources.nixpkgs {
overlays = [
(self: super: {
inherit hello;
})
];
};
in pkgs