diff options
| author | seth <[email protected]> | 2023-01-23 15:44:04 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-01-23 16:06:56 -0500 |
| commit | 79b1d22cc9eb3752ae798d5ca9e6eeefeb86799e (patch) | |
| tree | 4efdc7145ab3d13632ff956b8a6aa187bcbd568e /hosts/common | |
| parent | 9075aa13405b4d390bfe50cde83938c9a3af0fa8 (diff) | |
chore: general cleanup + use `with` less
Diffstat (limited to 'hosts/common')
| -rw-r--r-- | hosts/common/default.nix | 1 | ||||
| -rw-r--r-- | hosts/common/locale.nix | 13 | ||||
| -rw-r--r-- | hosts/common/security.nix | 4 | ||||
| -rw-r--r-- | hosts/common/users.nix | 11 |
4 files changed, 19 insertions, 10 deletions
diff --git a/hosts/common/default.nix b/hosts/common/default.nix index 32dad83..9793191 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -2,5 +2,6 @@ imports = [ ./security.nix ./users.nix + ./locale.nix ]; } diff --git a/hosts/common/locale.nix b/hosts/common/locale.nix new file mode 100644 index 0000000..2699b3b --- /dev/null +++ b/hosts/common/locale.nix @@ -0,0 +1,13 @@ +{config, ...}: { + i18n = { + defaultLocale = "en_US.UTF-8"; + extraLocaleSettings = { + LC_MESSAGES = "en_US.UTF-8"; + LC_TIME = "en_US.UTF-8"; + }; + }; + + time = { + timeZone = "America/New_York"; + }; +} diff --git a/hosts/common/security.nix b/hosts/common/security.nix index 2d473be..a0825e7 100644 --- a/hosts/common/security.nix +++ b/hosts/common/security.nix @@ -2,9 +2,7 @@ lib, config, ... -}: -with builtins; -with lib; { +}: { security.sudo = { configFile = '' Defaults env_reset diff --git a/hosts/common/users.nix b/hosts/common/users.nix index 0d2681e..e2e845e 100644 --- a/hosts/common/users.nix +++ b/hosts/common/users.nix @@ -3,20 +3,17 @@ lib, pkgs, ... -}: -with config; -with lib; -with pkgs; { +}: { users = { - defaultUserShell = bash; + defaultUserShell = pkgs.bash; mutableUsers = false; users = { root = { home = "/root"; - uid = ids.uids.root; + uid = config.ids.uids.root; group = "root"; - initialHashedPassword = mkDefault "!"; + initialHashedPassword = lib.mkDefault "!"; }; }; }; |
