From 7fab0738a75b389511412261315a41a58dc92cad Mon Sep 17 00:00:00 2001 From: Finn Behrens Date: Wed, 15 Sep 2021 09:27:53 +0200 Subject: [PATCH] flake: add default apps Signed-off-by: Finn Behrens --- flake.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/flake.nix b/flake.nix index cc71b74..d621243 100644 --- a/flake.nix +++ b/flake.nix @@ -25,5 +25,20 @@ schildichat-desktop-wayland ; }) nixpkgsFor; + + defaultPackage = forAllSystems (system: self.packages.${system}.schildichat-desktop); + + apps = forAllSystems(system: { + schildichat-desktop = { + type = "app"; + program = "${self.packages.${system}.schildichat-desktop}/bin/schildichat-desktop"; + }; + schildichat-desktop-wayland = { + type = "app"; + program = "${self.packages.${system}.schildichat-desktop-wayland}/bin/schildichat-desktop"; + }; + }); + + defaultApp = forAllSystems (system: self.apps.${system}.schildichat-desktop); }; }