mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-09 22:49:42 +00:00
21 lines
520 B
Nix
21 lines
520 B
Nix
{ config, lib, ... }: with lib; let
|
|
cfg = config.myOptions.system;
|
|
in
|
|
{
|
|
networking.hostName = cfg.hostname;
|
|
|
|
users = {
|
|
# Prevent mutating users outside of our configurations.
|
|
# TODO: Solve this, currentry it fails with no password
|
|
# specified for root account nor any whell user accounts
|
|
# and wants us to set pw manually with passwd, which needs
|
|
# mutableUsers
|
|
#mutableUsers = false;
|
|
|
|
users.${cfg.username} = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ];
|
|
};
|
|
};
|
|
}
|