password for root and enabled root ssh login (very important trust)

This commit is contained in:
2026-07-29 14:19:50 +01:00
parent b4e4de4cc8
commit f873b1e579
2 changed files with 19 additions and 11 deletions

View File

@@ -21,8 +21,10 @@
] ]
++ modules; ++ modules;
services = { services = {
openssh.enable = true; openssh = {
avahi.enable = true; enable = true;
permitRootLogin = "yes";
};
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim vim

View File

@@ -6,7 +6,12 @@
}: { }: {
flake.nixosModules.user = moduleWithSystem ({inputs', ...}: let flake.nixosModules.user = moduleWithSystem ({inputs', ...}: let
in { in {
users.users.user01 = { users.users = {
root = {
initialPassword = "password";
shell = inputs'.nix-config.packages.zsh;
};
user01 = {
isNormalUser = true; isNormalUser = true;
initialPassword = "password"; initialPassword = "password";
shell = inputs'.nix-config.packages.zsh; shell = inputs'.nix-config.packages.zsh;
@@ -16,5 +21,6 @@
"wheel" "wheel"
]; ];
}; };
};
}); });
} }