Add apps and host-users modules
This commit is contained in:
parent
22e4e8b611
commit
f39962f246
4 changed files with 38 additions and 17 deletions
17
.config/nix/modules/host-users.nix
Normal file
17
.config/nix/modules/host-users.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ ... }@args:
|
||||
let
|
||||
hostname = "TobAir";
|
||||
username = "tobi";
|
||||
in
|
||||
{
|
||||
networking.hostName = hostname;
|
||||
networking.computerName = hostname;
|
||||
system.defaults.smb.NetBIOSName = hostname;
|
||||
|
||||
users.users."${username}" = {
|
||||
home = "/Users/${username}";
|
||||
description = "Tobias Ostner";
|
||||
};
|
||||
|
||||
nix.settings.trusted-users = [ username ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue