Skip to content

Commit

Permalink
Add printing service in chromium-vm and bussiness-vm
Browse files Browse the repository at this point in the history
CUPS is enabled in chromium-vm and bussines-vm
Avahi service reflection is added in net-vm

Signed-off-by: Berk Arslan <[email protected]>
  • Loading branch information
Nerox9 committed Sep 11, 2024
1 parent c54e0f4 commit 520eba4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/microvm/virtualization/microvm/netvm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ let
firewall.allowedTCPPorts = [ 53 ];
firewall.allowedUDPPorts = [ 53 ];
};
services.avahi = {
enable = true;
nssmdns4 = true;
reflector = true;
};

services.openssh = config.ghaf.security.sshKeys.sshAuthorizedKeysCommand;

Expand Down
7 changes: 7 additions & 0 deletions modules/reference/appvms/business.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ in
# Set default PDF XDG handler
xdg.mime.defaultApplications."application/pdf" = "ghaf-pdf.desktop";

services.printing.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
reflector = true;
};

# TODO: Add a way to configure the gpclient
# also check the openconnect cli options https://discourse.nixos.org/t/globalprotect-vpn/24014/5
services.globalprotect = {
Expand Down
7 changes: 7 additions & 0 deletions modules/reference/appvms/chromium.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ in

# Set default PDF XDG handler
xdg.mime.defaultApplications."application/pdf" = "ghaf-pdf.desktop";

services.printing.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
reflector = true;
};
}
];
borderColor = "#630505";
Expand Down

0 comments on commit 520eba4

Please sign in to comment.