nixdots/system/system.nix

25 lines
612 B
Nix

{ config, lib, pkgs, ... }: with lib; let
cfg = config.myOptions.system;
in
{
networking.hostName = cfg.hostname;
# Default shell for the user
programs.zsh.enable = true;
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" ];
shell = pkgs.zsh;
};
};
}