Skip to content

Commit

Permalink
Use config time for the timeZone
Browse files Browse the repository at this point in the history
Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
  • Loading branch information
brianmcgillion committed Jun 12, 2024
1 parent b470c5f commit ae44f59
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion modules/microvm/virtualization/microvm/audiovm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
pkgs,
...
}: {
time.timeZone = "Asia/Dubai";
time.timeZone = config.time.timeZone;
ghaf = {
users.accounts.enable = lib.mkDefault configHost.ghaf.users.accounts.enable;
profiles.debug.enable = lib.mkDefault configHost.ghaf.profiles.debug.enable;
Expand Down
2 changes: 1 addition & 1 deletion modules/reference/appvms/chromium.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ in {
'';
};

time.timeZone = "Asia/Dubai";
time.timeZone = config.time.timeZone;

microvm.qemu.extraArgs = lib.optionals config.ghaf.hardware.usb.internal.enable config.ghaf.hardware.usb.internal.qemuExtraArgs.webcam;
microvm.devices = [];
Expand Down
2 changes: 1 addition & 1 deletion modules/reference/appvms/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ in {
enabled-app-vms =
(lib.optionals cfg.chromium-vm [(import ./chromium.nix {inherit pkgs lib config;})])
++ (lib.optionals cfg.gala-vm [(import ./gala.nix {inherit pkgs lib config;})])
++ (lib.optionals cfg.zathura-vm [(import ./zathura.nix {inherit pkgs;})])
++ (lib.optionals cfg.zathura-vm [(import ./zathura.nix {inherit pkgs config;})])
++ (lib.optionals cfg.element-vm [(import ./element.nix {inherit pkgs lib config;})])
++ (lib.optionals cfg.appflowy-vm [(import ./appflowy.nix {inherit pkgs config;})]);
};
Expand Down
2 changes: 1 addition & 1 deletion modules/reference/appvms/element.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ in {
firewall.allowedUDPPorts = [dendrite-pinecone.McastUdpPortInt];
};

time.timeZone = "${config.time.timeZone}";
time.timeZone = config.time.timeZone;

services.gpsd = {
enable = true;
Expand Down
8 changes: 6 additions & 2 deletions modules/reference/appvms/zathura.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Copyright 2024 TII (SSRC) and the Ghaf contributors
# SPDX-License-Identifier: Apache-2.0
#
{pkgs, ...}: {
{
pkgs,
config,
...
}: {
name = "zathura";
packages = [pkgs.zathura];
macAddress = "02:00:00:03:07:01";
Expand All @@ -10,7 +14,7 @@
extraModules = [
{
imports = [../programs/zathura.nix];
time.timeZone = "Asia/Dubai";
time.timeZone = config.time.timeZone;
ghaf.programs.zathura.enable = true;
}
];
Expand Down
2 changes: 1 addition & 1 deletion targets/lenovo-x1/guivmExtraModules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
};
};

time.timeZone = "Asia/Dubai";
time.timeZone = configH.time.timeZone;

# PDF XDG handler service receives a PDF file path from the chromium-vm and executes the openpdf script
systemd.user = {
Expand Down
2 changes: 1 addition & 1 deletion targets/lenovo-x1/netvmExtraModules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
systemPackages = lib.mkIf configH.ghaf.profiles.debug.enable [pkgs.wifi-connector-nmcli pkgs.tcpdump];
};

time.timeZone = "Asia/Dubai";
time.timeZone = configH.time.timeZone;

ghaf.services.dendrite-pinecone = {
enable = true;
Expand Down

0 comments on commit ae44f59

Please sign in to comment.