about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/common/system/default.nix4
-rw-r--r--hosts/common/system/locale.nix12
-rw-r--r--hosts/common/system/security.nix5
3 files changed, 19 insertions, 2 deletions
diff --git a/hosts/common/system/default.nix b/hosts/common/system/default.nix
index 875652e..db48b66 100644
--- a/hosts/common/system/default.nix
+++ b/hosts/common/system/default.nix
@@ -4,15 +4,15 @@
   imports = [
     ./boot.nix
     ./hardware.nix
+    ./locale.nix
     ./network.nix
     ./nix.nix
+    ./security.nix
     ./software.nix
     ./ssh.nix
     ./users.nix
   ];
 
-  # Select internationalisation properties.
-  i18n.defaultLocale = "en_US.UTF-8";
   console = {
     font = "Lat2-Terminus16";
     keyMap = "us";
diff --git a/hosts/common/system/locale.nix b/hosts/common/system/locale.nix
new file mode 100644
index 0000000..53174e3
--- /dev/null
+++ b/hosts/common/system/locale.nix
@@ -0,0 +1,12 @@
+{ config, ... }:
+
+{
+  # 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";
+}
diff --git a/hosts/common/system/security.nix b/hosts/common/system/security.nix
new file mode 100644
index 0000000..b35e60e
--- /dev/null
+++ b/hosts/common/system/security.nix
@@ -0,0 +1,5 @@
+{ config, ... }:
+
+{
+  security.sudo.wheelNeedsPassword = false;
+}