Compare commits
No commits in common. "8899f4ef48de5dbf656e174093359cd18ec44d49" and "0347530511d9e7c8732211b8c41ceb905c19f70b" have entirely different histories.
8899f4ef48
...
0347530511
2 changed files with 2 additions and 19 deletions
|
|
@ -282,9 +282,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fleet default. Override per machine with timeZoneForModel in flake.nix —
|
# Timezone - set to your location
|
||||||
# mkDefault is what lets that override win without mkForce.
|
time.timeZone = "America/Guatemala";
|
||||||
time.timeZone = lib.mkDefault "America/Guatemala";
|
|
||||||
|
|
||||||
# Locale
|
# Locale
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
|
||||||
16
flake.nix
16
flake.nix
|
|
@ -116,18 +116,6 @@
|
||||||
batm3 = "USD";
|
batm3 = "USD";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Timezone per machine model. Wall-clock time on an ATM is not cosmetic:
|
|
||||||
# it is what the journal is read in when someone is standing at the
|
|
||||||
# machine, and system.autoUpgrade's `dates = "04:00"` is local, so this
|
|
||||||
# decides when the nightly rebuild restarts the app and the dispenser
|
|
||||||
# runs its audible init routine. A machine on the wrong zone does that
|
|
||||||
# in the middle of its own business hours.
|
|
||||||
#
|
|
||||||
# Unlisted models fall back to the fleet default in configuration.nix.
|
|
||||||
timeZoneForModel = {
|
|
||||||
sintra = "Europe/Paris";
|
|
||||||
};
|
|
||||||
|
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
|
||||||
# Helper to create a live USB NixOS config for a specific machine model
|
# Helper to create a live USB NixOS config for a specific machine model
|
||||||
|
|
@ -186,10 +174,6 @@
|
||||||
appDir = "${atm-app}";
|
appDir = "${atm-app}";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Per-machine wall clock; see timeZoneForModel above.
|
|
||||||
time.timeZone = lib.mkIf (timeZoneForModel ? ${machineModel})
|
|
||||||
timeZoneForModel.${machineModel};
|
|
||||||
|
|
||||||
# Operator TUI and CLI tools
|
# Operator TUI and CLI tools
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
atm-tui.packages.${system}.default
|
atm-tui.packages.${system}.default
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue