configuration: set hashedPassword for both users
This commit is contained in:
parent
1ac3cb09b7
commit
e7614d458e
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
1
secrets/shadow-hashed-password-alarsyo.example
Normal file
1
secrets/shadow-hashed-password-alarsyo.example
Normal file
|
@ -0,0 +1 @@
|
|||
# Hashed password to generate with `mkpasswd -m sha-512`
|
1
secrets/shadow-hashed-password-root.example
Normal file
1
secrets/shadow-hashed-password-root.example
Normal file
|
@ -0,0 +1 @@
|
|||
# Hashed password to generate with `mkpasswd -m sha-512`
|
Loading…
Reference in a new issue