linux: add openssh and tb user account
This commit is contained in:
14
system/linux/openssh.nix
Normal file
14
system/linux/openssh.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ ... }:
|
||||
{
|
||||
# This setups a SSH server. Very important if you're setting up a headless system.
|
||||
# Feel free to remove if you don't need it.
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# Require a ssh key login for root.
|
||||
PermitRootLogin = "prohibit-password";
|
||||
# Use keys only. Remove if you want to SSH using password (not recommended)
|
||||
PasswordAuthentication = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
14
system/linux/user-tb.nix
Normal file
14
system/linux/user-tb.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ ... }:
|
||||
{
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.tb = {
|
||||
isNormalUser = true;
|
||||
description = "Timo Bingmann";
|
||||
uid = 7777;
|
||||
group = "users";
|
||||
extraGroups = [ "wheel" "networkmanager" "video" "docker" "scanner" ];
|
||||
home = "/home/tb";
|
||||
homeMode = "711";
|
||||
hashedPassword = "$y$j9T$wYCQHfl0OyCyXBQRo7aOe.$5LY3ulvc1uKT/Squ7VSVSXvMR/FRg2MUbOmUfnN5CR7";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user