Smaller improvements + password hashing
This commit is contained in:
parent
9d8b5c5dc2
commit
afa822b777
5 changed files with 13 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -62,3 +62,6 @@ $RECYCLE.BIN/
|
|||
*.lnk
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,windows,linux
|
||||
|
||||
|
||||
*.pw
|
5
execute.sh
Normal file
5
execute.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
openssl passwd -6 $1 > dev_user_password.pw
|
||||
|
||||
colmena apply -f colmena.nix
|
|
@ -7,7 +7,7 @@
|
|||
home = "/home/dev";
|
||||
description = "User used to manually connect to this system (e.g. for maintenance)";
|
||||
extraGroups = [ "docker" "wheel" ];
|
||||
hashesPassword = "TODO";
|
||||
hashedPasswordFile = "dev_user_password.pw";
|
||||
}
|
||||
};
|
||||
}
|
|
@ -2,5 +2,6 @@
|
|||
{
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
enableOnBoot = true;
|
||||
};
|
||||
}
|
|
@ -9,6 +9,9 @@
|
|||
openssh = {
|
||||
enable = true;
|
||||
ports = [ 23 ];
|
||||
settings = {
|
||||
AllowUsers = [ "dev" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue