use password hash everywehre

This commit is contained in:
Johannes Jöns 2024-05-29 21:28:37 +02:00
parent 7be826ccf6
commit 145d33ddd1
3 changed files with 2 additions and 5 deletions

View file

@ -11,7 +11,7 @@ in {
isNormalUser = true;
shell = pkgs.nushell;
description = "Johannes Jöns";
initialPassword = "password";
hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
extraGroups = [ "wheel" "networkmanager" "pipewire" "audio" "adbusers" ];
uid = 1000;
openssh.authorizedKeys.keys = [

View file

@ -6,7 +6,7 @@ in {
config = lib.mkIf cfg.enable {
users.users.root = {
initialPassword = "password";
hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB8oyMpS2hK3gQXyHIIVS6oilgMpemLmfhKKJ6RBMwUh johannes@joens.email"
];

View file

@ -51,9 +51,6 @@
security.acme.acceptTerms = true;
security.acme.defaults.email = "security@missing.ninja";
users.users.jopejoe1.hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
users.users.root.hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
services.vsftpd = {
enable = true;
writeEnable = true;