nix-config-v2/modules/host-users.nix

24 lines
542 B
Nix
Raw Normal View History

2024-07-29 23:09:42 -05:00
{
username,
hostname,
...
} @ args:
#############################################################
#
# Host & Users configuration
#
#############################################################
{
networking.hostName = hostname;
networking.computerName = hostname;
system.defaults.smb.NetBIOSName = hostname;
# Define a user account. Don't forget to set a password with passwd.
users.users."${username}" = {
home = "/Users/${username}";
description = username;
};
nix.settings.trusted-users = [username];
}