aboutsummaryrefslogtreecommitdiffstats
path: root/modules/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos')
-rw-r--r--modules/nixos/common.nix17
1 files changed, 14 insertions, 3 deletions
diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix
index 5427414..2e70b15 100644
--- a/modules/nixos/common.nix
+++ b/modules/nixos/common.nix
@@ -13,11 +13,22 @@
13 time.timeZone = lib.mkDefault "Etc/UTC"; 13 time.timeZone = lib.mkDefault "Etc/UTC";
14 i18n.defaultLocale = lib.mkDefault "en_US.UTF-8"; 14 i18n.defaultLocale = lib.mkDefault "en_US.UTF-8";
15 15
16 programs.zsh.enable = true;
17
18 users.users.tom = { 16 users.users.tom = {
19 isNormalUser = true; 17 isNormalUser = true;
20 extraGroups = [ "wheel" ]; 18 extraGroups = [ "wheel" ];
21 shell = pkgs.zsh; 19 shell = pkgs.bash;
20 };
21
22 services.openssh = {
23 enable = true;
24 settings = {
25 PasswordAuthentication = false;
26 PermitRootLogin = "no";
27 };
28 };
29
30 networking.firewall = {
31 enable = true;
32 allowedTCPPorts = [ 22 ];
22 }; 33 };
23} 34}