disable the root user

This commit is contained in:
Andreas Zweili 2022-01-12 22:08:22 +01:00
parent 9297af85c5
commit 5b91851b95
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ in
keyMap = "us";
};
# Disable the root user
users.users.root.hashedPassword = "!";
# Define a user account. Don't forget to set a password with passwd.
users.users.${username} = {
isNormalUser = true;