about summary refs log tree commit diff
path: root/hosts/common
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-18 09:30:13 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-18 09:30:39 -0800
commit0d6c0c34ad6a73509011de25ff7453488005f177 (patch)
tree293cddb1ff5ace71b45b217e32e8812abe2640b9 /hosts/common
parentdesktop: enable natural scrolling (diff)
downloadworld-0d6c0c34ad6a73509011de25ff7453488005f177.tar.gz
system: add locale and security
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;
+}