Created
March 14, 2024 03:48
-
-
Save greg-hellings/9f8cd8f5bafda2c4922882ded2f9a6bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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