diff --git a/modules/system/core/default.nix b/modules/system/core/default.nix index 004e574..762e76a 100644 --- a/modules/system/core/default.nix +++ b/modules/system/core/default.nix @@ -21,8 +21,10 @@ ] ++ modules; services = { - openssh.enable = true; - avahi.enable = true; + openssh = { + enable = true; + permitRootLogin = "yes"; + }; }; environment.systemPackages = with pkgs; [ vim diff --git a/modules/system/core/user.nix b/modules/system/core/user.nix index eeb5e32..b1f6678 100644 --- a/modules/system/core/user.nix +++ b/modules/system/core/user.nix @@ -6,15 +6,21 @@ }: { flake.nixosModules.user = moduleWithSystem ({inputs', ...}: let in { - users.users.user01 = { - isNormalUser = true; - initialPassword = "password"; - shell = inputs'.nix-config.packages.zsh; - description = "user01"; - extraGroups = [ - "root" - "wheel" - ]; + users.users = { + root = { + initialPassword = "password"; + shell = inputs'.nix-config.packages.zsh; + }; + user01 = { + isNormalUser = true; + initialPassword = "password"; + shell = inputs'.nix-config.packages.zsh; + description = "user01"; + extraGroups = [ + "root" + "wheel" + ]; + }; }; }); }