From a95812654f47eae50aeba9f9da71ee9d1163e8bc Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 8 Sep 2020 19:20:28 +0200 Subject: Add basic flake.nix Unfortunately, most of the functionality can't be easily exposed via Nix Flakes, so this will be a very limited Flake with only our NixOS modules and our packages as an overlay. One of those things that are very hard to expose are our packaged games, since the availability of them are dependent on the configuration (eg. GOG, itch.io or HIB credentials). Even when it comes to buildSandbox - which is the main reason why I'm adding a flake.nix - I am not so sure what's the best way to expose it. For example on one side, this could be exposed as vuizvui.lib.buildSandbox, which in turn expects a pkgs argument, but on the other side, we want to have certain other parts that *do* depend on a locked version of nixpkgs. Using pkgs as part of a "lib" attribute also sounds a bit weird to me, since lib usually doesn't contain anything depending on stdenv. So until we have a better way of integration, I'll just expose the overlay and our NixOS modules. Signed-off-by: aszlig --- flake.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 00000000..a235d3ca --- /dev/null +++ b/flake.nix @@ -0,0 +1,8 @@ +{ + description = "Vuizvui"; + + outputs = _: { + nixosModules.vuizvui = import modules/module-list.nix; + overlay = _: pkgs: { vuizvui = import ./pkgs { inherit pkgs; }; }; + }; +} -- cgit 1.4.1