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

@@ -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"
];
};
};
});
}