nixdots/system/shared/system.nix

23 lines
327 B
Nix
Raw Normal View History

2024-03-21 20:47:25 +00:00
{
2024-07-26 23:07:07 +00:00
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.myOptions.system;
in {
2024-03-21 20:47:25 +00:00
networking.hostName = cfg.hostname;
2024-03-24 12:18:51 +00:00
# Default shell for the user
programs.zsh.enable = true;
2024-03-21 20:47:25 +00:00
users = {
users.${cfg.username} = {
isNormalUser = true;
2024-07-26 23:07:07 +00:00
extraGroups = ["wheel"];
2024-03-24 12:18:51 +00:00
shell = pkgs.zsh;
2024-03-21 20:47:25 +00:00
};
};
}