add flake template

This commit is contained in:
DavHau 2022-04-08 11:59:24 +01:00
parent 84135ea205
commit f59346d1d6
2 changed files with 23 additions and 0 deletions

View File

@ -296,5 +296,12 @@
};
};
}));
templates = {
simple = {
description = "Simple dream2nix flake";
path = ./simple;
};
};
};
}

View File

@ -0,0 +1,16 @@
{
inputs.dream2nix.url = "github:nix-community/dream2nix";
outputs = {
self,
dream2nix,
} @ inputs: let
dream2nix = inputs.dream2nix.lib.init {
# modify according to your supported systems
systems = ["x86_64-linux"];
config.projectRoot = ./.;
};
in
dream2nix.makeFlakeOutputs {
source = ./.;
};
}