From f873b1e5797df3451f933051c694fe729c54cd37 Mon Sep 17 00:00:00 2001 From: voidarc Date: Wed, 29 Jul 2026 14:19:50 +0100 Subject: [PATCH] password for root and enabled root ssh login (very important trust) --- modules/system/core/default.nix | 6 ++++-- modules/system/core/user.nix | 24 +++++++++++++++--------- 2 files changed, 19 insertions(+), 11 deletions(-) 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" + ]; + }; }; }); }