summaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-04-17 03:50:34 -0400
committerseth <[email protected]>2024-04-17 03:50:34 -0400
commitdfdb0ceed87923086f258f5291276c9db0b7ecd0 (patch)
treecf292e6da1789f71b07e85c8f2936bd60d210fce /default.nix
parentcbcc5c09585229ec31cf76f2ab666b2d34129914 (diff)
nix: remove all inputs
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..9db0433
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,18 @@
+let
+ lock = builtins.fromJSON (builtins.readFile ./flake.lock);
+ fetchTree = import ./nix/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'