Skip to content

Commit

Permalink
Add Appflowy as an example of Flutter application.
Browse files Browse the repository at this point in the history
AppFlowy is an AI-powered secure workspace where users achieve more
without losing control of their data. It allows to take notes, track
to-dos, and manage projects in a secure, local-first workspace.

Signed-off-by: dmitry-erin <dmitry.erin@unikie.com>
  • Loading branch information
dmitry-erin committed Apr 22, 2024
1 parent 48a535f commit d78e3ab
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 1 deletion.
Binary file added assets/icons/png/appflowy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions assets/icons/svg/appflowy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion modules/desktop/graphics/demo-apps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ in {
gala-app = mkProgramOption "Gala App" false;
element-desktop = mkProgramOption "Element desktop" config.ghaf.graphics.enableDemoApplications;
zathura = mkProgramOption "zathura" config.ghaf.graphics.enableDemoApplications;
appflowy = mkProgramOption "Appflowy" config.ghaf.graphics.enableDemoApplications;
};

config = lib.mkIf config.ghaf.profiles.graphics.enable {
Expand Down Expand Up @@ -67,12 +68,18 @@ in {
name = "zathura";
path = "${pkgs.zathura}/bin/zathura";
icon = "${pkgs.zathura}/share/icons/hicolor/32x32/apps/org.pwmt.zathura.png";
}
++ lib.optional cfg.appflowy {
name = "appflowy";
path = "${pkgs.appflowy}/bin/appflowy";
icon = ../../../assets/icons/svg/appflowy.svg;
};
environment.systemPackages =
lib.optional cfg.chromium pkgs.chromium
++ lib.optional cfg.element-desktop pkgs.element-desktop
++ lib.optional cfg.firefox pkgs.firefox
++ lib.optional cfg.gala-app pkgs.gala-app
++ lib.optional cfg.zathura pkgs.zathura;
++ lib.optional cfg.zathura pkgs.zathura
++ lib.optional cfg.appflowy pkgs.appflowy;
};
}
17 changes: 17 additions & 0 deletions targets/lenovo-x1/appvms/appflowy.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2024 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
#
{pkgs, ...}:
{
name = "appflowy";
packages = [] ++pkgs.lib.optional pkgs.stdenv.isx86_64 (pkgs.appflowy);
macAddress = "02:00:00:03:08:01";
ramMb = 512;
cores = 1;
extraModules = [
{
hardware.opengl.enable = true;
time.timeZone = "Asia/Dubai";
}
];
}
3 changes: 3 additions & 0 deletions targets/lenovo-x1/appvms/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
chromium = import ./chromium.nix {inherit pkgs;};
gala = import ./gala.nix {inherit pkgs;};
zathura = import ./zathura.nix {inherit pkgs;};
appflowy = import ./appflowy.nix {inherit pkgs;};
in [
chromium
gala
zathura
appflowy
]

6 changes: 6 additions & 0 deletions targets/lenovo-x1/guivmExtraModules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
icon = "${../../assets/icons/png/pdf.png}";
}

{
name = "appflowy";
path = "${pkgs.openssh}/bin/ssh -i ${configH.ghaf.security.sshKeys.sshKeyPath} -o StrictHostKeyChecking=no appflowy-vm.ghaf run-waypipe appflowy";
icon = "${../../assets/icons/svg/appflowy.svg}";
}

{
name = "windows";
path = "${pkgs.virt-viewer}/bin/remote-viewer -f spice://${winConfig.spice-host}:${toString winConfig.spice-port}";
Expand Down

0 comments on commit d78e3ab

Please sign in to comment.