configuration: set hashedPassword for both users

This commit is contained in:
Antoine Martin 2021-02-05 22:32:43 +01:00
parent 1ac3cb09b7
commit e7614d458e
4 changed files with 9 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
/secrets/borg-backup-repo
/secrets/miniflux-admin-credentials
/secrets/matrix-registration-shared-secret
/secrets/shadow-hashed-password-alarsyo
/secrets/shadow-hashed-password-root

View file

@ -41,8 +41,12 @@
"62.210.16.7"
];
# Define a user account. Don't forget to set a password with passwd.
# Define a user account.
users.users.root = {
hashedPassword = lib.fileContents ./secrets/shadow-hashed-password-root;
};
users.users.alarsyo = {
hashedPassword = lib.fileContents ./secrets/shadow-hashed-password-alarsyo;
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
shell = pkgs.fish;

View file

@ -0,0 +1 @@
# Hashed password to generate with `mkpasswd -m sha-512`

View file

@ -0,0 +1 @@
# Hashed password to generate with `mkpasswd -m sha-512`