Initial commit

This commit is contained in:
Sangmin Kim 2025-04-04 05:25:20 +09:00
commit 6c503c465b
9 changed files with 493 additions and 0 deletions

23
modules/host-users.nix Normal file
View file

@ -0,0 +1,23 @@
{
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];
}