password for root and enabled root ssh login (very important trust)
This commit is contained in:
@@ -21,8 +21,10 @@
|
||||
]
|
||||
++ modules;
|
||||
services = {
|
||||
openssh.enable = true;
|
||||
avahi.enable = true;
|
||||
openssh = {
|
||||
enable = true;
|
||||
permitRootLogin = "yes";
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
|
||||
@@ -6,7 +6,12 @@
|
||||
}: {
|
||||
flake.nixosModules.user = moduleWithSystem ({inputs', ...}: let
|
||||
in {
|
||||
users.users.user01 = {
|
||||
users.users = {
|
||||
root = {
|
||||
initialPassword = "password";
|
||||
shell = inputs'.nix-config.packages.zsh;
|
||||
};
|
||||
user01 = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "password";
|
||||
shell = inputs'.nix-config.packages.zsh;
|
||||
@@ -16,5 +21,6 @@
|
||||
"wheel"
|
||||
];
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user