diff options
| author | seth <[email protected]> | 2024-04-27 04:40:29 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-27 00:40:29 -0400 |
| commit | a0a9cb51e35e915dbcc1d7bda430f45c4353c8ff (patch) | |
| tree | 53041599823eddafbf464f1ddb5fcc0a95f63324 /default.nix | |
| parent | fbc60151f13d4529bea400f55c698dc1468eec46 (diff) | |
better compose overlay + add aarch64 support (#53)
* better compose overlay + add aarch64 support
* ci: update workflows
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..73e9a8a --- /dev/null +++ b/default.nix @@ -0,0 +1,18 @@ +let + lock = builtins.fromJSON (builtins.readFile ./flake.lock); + fetchTree = import ./fetchTree.nix; + flakeSources = builtins.mapAttrs (_: node: fetchTree node.locked) lock.nodes; +in + { + nixpkgs ? + import sources.nixpkgs { + inherit system; + config = {}; + overlays = []; + }, + system ? builtins.currentSystem, + sources ? flakeSources, + }: let + pkgs' = import ./overlay.nix (nixpkgs // pkgs') nixpkgs; + in + pkgs' |
