Skip to content

Instantly share code, notes, and snippets.

@greg-hellings
Created March 14, 2024 03:48
Show Gist options
  • Save greg-hellings/9f8cd8f5bafda2c4922882ded2f9a6bd to your computer and use it in GitHub Desktop.
Save greg-hellings/9f8cd8f5bafda2c4922882ded2f9a6bd to your computer and use it in GitHub Desktop.
{
inputs.nixstable.url = "github.com:NixOS/nixos-23.11";
inputs.nixunstable.url = "github.com:NixOS/nixpkgs/unstable";
outputs = { nixstable, nixunstable, ... }@inputs:
let
overlay = final: prev:
let
overrides = [
"pkg1"
"pkg2"
"pkg3"
];
in (
prev.lib.attrsets.genAttrs overrides (x: prev."${x}".override { < some override settings here > })
);
pkgs = import nixstable { system = "x86_64-linux"; overlays = [ overlay ]; };
pkgsunstable = import nixunstable { system = "x86_64-linux"; overlays = [ overlay ]; };
in {
nixosConfigurations = ...
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment