Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gnome-text-editor application in business-vm #803

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modules/common/services/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ in
path = "${pkgs.givc-cli}/bin/givc-cli ${cliArgs} start --vm business-vm teams";
icon = "${pkgs.icon-pack}/teams-for-linux.svg";
}
{
name = "Gnome Text Editor";
description = "Text Editor and Note-Taking Application";
vm = "Business";
path = "${pkgs.givc-cli}/bin/givc-cli ${cliArgs} start --vm business-vm gnome-text-editor";
icon = "${pkgs.icon-pack}/org.gnome.TextEditor.svg";
}

{
name = "GALA";
Expand Down
4 changes: 4 additions & 0 deletions modules/desktop/graphics/labwc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ in
identifier = "AppFlowy";
colour = "#4c3f7a";
}
{
identifier = "org.gnome.TextEditor";
colour = "#353535";
}
];
description = "List of applications and their frame colours";
};
Expand Down
16 changes: 11 additions & 5 deletions modules/reference/appvms/business.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ in
pkgs.globalprotect-openconnect
pkgs.openconnect
pkgs.nftables
pkgs.gnome-text-editor
];
# TODO create a repository of mac addresses to avoid conflicts
macAddress = "02:00:00:03:10:01";
Expand All @@ -61,11 +62,12 @@ in
name = lib.mkForce "business-vm";
applications = lib.mkForce ''
{
"chromium": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/chromium --enable-features=UseOzonePlatform --ozone-platform=wayland ${config.ghaf.givc.idsExtraArgs}",
"outlook": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/chromium --enable-features=UseOzonePlatform --ozone-platform=wayland --app=https://outlook.office.com/mail/ ${config.ghaf.givc.idsExtraArgs}",
"office": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/chromium --enable-features=UseOzonePlatform --ozone-platform=wayland --app=https://microsoft365.com ${config.ghaf.givc.idsExtraArgs}",
"teams": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/chromium --enable-features=UseOzonePlatform --ozone-platform=wayland --app=https://teams.microsoft.com ${config.ghaf.givc.idsExtraArgs}",
"gpclient": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/gpclient -platform wayland"
"chromium": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/chromium --enable-features=UseOzonePlatform --ozone-platform=wayland ${config.ghaf.givc.idsExtraArgs}",
"outlook": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/chromium --enable-features=UseOzonePlatform --ozone-platform=wayland --app=https://outlook.office.com/mail/ ${config.ghaf.givc.idsExtraArgs}",
"office": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/chromium --enable-features=UseOzonePlatform --ozone-platform=wayland --app=https://microsoft365.com ${config.ghaf.givc.idsExtraArgs}",
"teams": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/chromium --enable-features=UseOzonePlatform --ozone-platform=wayland --app=https://teams.microsoft.com ${config.ghaf.givc.idsExtraArgs}",
"gpclient": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/gpclient -platform wayland",
"gnome-text-editor": "${config.ghaf.givc.appPrefix}/run-waypipe ${config.ghaf.givc.appPrefix}/gnome-text-editor"
}'';
};

Expand All @@ -81,6 +83,10 @@ in
csdWrapper = "${pkgs.openconnect}/libexec/openconnect/hipreport.sh";
};

# Enable dconf and icon pack for gnome text editor
programs.dconf.enable = true;
environment.systemPackages = [ pkgs.gnome.adwaita-icon-theme ];

#Firewall Settings
networking = {
firewall.enable = true;
Expand Down
1 change: 1 addition & 0 deletions packages/icon-pack/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ let
"firefox.svg"
"microsoft-365.svg"
"ms-outlook.svg"
"org.gnome.TextEditor.svg"
"preferences-system-network.svg"
"slack.svg"
"system-lock-screen.svg"
Expand Down