summaryrefslogtreecommitdiff
path: root/modules/nixos/base/locale.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-08 00:21:41 -0400
committerseth <[email protected]>2023-05-08 00:21:41 -0400
commit9cedd06b8589a5d39a7a85e2efe646a8edebac53 (patch)
tree8884a1238b0586396bc403098e23e78505ab514e /modules/nixos/base/locale.nix
parent589c80eb1bcaf76b4a1a7e6f9cdd725fdb04e063 (diff)
modules: merge base and nixos
Diffstat (limited to 'modules/nixos/base/locale.nix')
-rw-r--r--modules/nixos/base/locale.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/nixos/base/locale.nix b/modules/nixos/base/locale.nix
new file mode 100644
index 0000000..b79d328
--- /dev/null
+++ b/modules/nixos/base/locale.nix
@@ -0,0 +1,24 @@
+{
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.getchoo.base.defaultLocale;
+ inherit (lib) mkEnableOption mkIf;
+in {
+ options.getchoo.base.defaultLocale.enable = mkEnableOption "enable default locale";
+
+ config = mkIf cfg.enable {
+ i18n = {
+ supportedLocales = [
+ "en_US.UTF-8/UTF-8"
+ ];
+ defaultLocale = "en_US.UTF-8";
+ };
+
+ time = {
+ hardwareClockInLocalTime = true;
+ timeZone = "America/New_York";
+ };
+ };
+}