about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-05 17:56:35 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-05 17:56:35 -0700
commit3eb9e699260cfc080e7551ceb8b11b8330633fc3 (patch)
treeaa4ede31e8dfe5eddb5e6551c60638d8df2319c9
parentconsole configuration is moved to a module (diff)
downloadworld-3eb9e699260cfc080e7551ceb8b11b8330633fc3.tar.gz
move locale configuration to a module
-rw-r--r--hosts/common/system/default.nix1
-rw-r--r--modules/system/default.nix2
-rw-r--r--modules/system/locale/default.nix (renamed from hosts/common/system/locale.nix)9
3 files changed, 3 insertions, 9 deletions
diff --git a/hosts/common/system/default.nix b/hosts/common/system/default.nix
index 3e546ff..fda467f 100644
--- a/hosts/common/system/default.nix
+++ b/hosts/common/system/default.nix
@@ -4,7 +4,6 @@
   imports = [
     ./boot.nix
     ./hardware.nix
-    ./locale.nix
     ./network.nix
     ./security.nix
     ./software.nix
diff --git a/modules/system/default.nix b/modules/system/default.nix
index 1003646..1f832bf 100644
--- a/modules/system/default.nix
+++ b/modules/system/default.nix
@@ -1 +1 @@
-{ ... }: { imports = [ ./console ./nix ]; }
+{ ... }: { imports = [ ./console ./locale ./nix ]; }
diff --git a/hosts/common/system/locale.nix b/modules/system/locale/default.nix
index 53174e3..2026764 100644
--- a/hosts/common/system/locale.nix
+++ b/modules/system/locale/default.nix
@@ -1,12 +1,7 @@
-{ config, ... }:
-
-{
+# Language settings
+{ ... }: {
   # Select internationalisation properties.
   i18n.defaultLocale = "en_US.UTF-8";
 
   time.timeZone = "America/Los_Angeles";
-
-  location.latitude = 37.8715;
-  location.longitude = -122.2730;
-  location.provider = "manual";
 }