password for root and enabled root ssh login (very important trust)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -6,15 +6,21 @@
|
|||||||
}: {
|
}: {
|
||||||
flake.nixosModules.user = moduleWithSystem ({inputs', ...}: let
|
flake.nixosModules.user = moduleWithSystem ({inputs', ...}: let
|
||||||
in {
|
in {
|
||||||
users.users.user01 = {
|
users.users = {
|
||||||
isNormalUser = true;
|
root = {
|
||||||
initialPassword = "password";
|
initialPassword = "password";
|
||||||
shell = inputs'.nix-config.packages.zsh;
|
shell = inputs'.nix-config.packages.zsh;
|
||||||
description = "user01";
|
};
|
||||||
extraGroups = [
|
user01 = {
|
||||||
"root"
|
isNormalUser = true;
|
||||||
"wheel"
|
initialPassword = "password";
|
||||||
];
|
shell = inputs'.nix-config.packages.zsh;
|
||||||
|
description = "user01";
|
||||||
|
extraGroups = [
|
||||||
|
"root"
|
||||||
|
"wheel"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user