From 0d6c0c34ad6a73509011de25ff7453488005f177 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 18 Feb 2022 09:30:13 -0800 Subject: system: add locale and security --- hosts/common/system/default.nix | 4 ++-- hosts/common/system/locale.nix | 12 ++++++++++++ hosts/common/system/security.nix | 5 +++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 hosts/common/system/locale.nix create mode 100644 hosts/common/system/security.nix (limited to 'hosts/common') 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; +} -- cgit 1.4.1