2024-12-06 18:04:47 +00:00
|
|
|
# Modules common to all systems
|
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
namespace,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
|
|
|
{
|
|
|
|
${namespace} = {
|
|
|
|
# Install base packages
|
|
|
|
packages = with pkgs; [
|
|
|
|
fastfetch # Show a neat system statistics screen when opening a terminal
|
|
|
|
htop # System monitor
|
|
|
|
lm_sensors # System temperature monitoring
|
|
|
|
zellij # Terminal multiplexer
|
|
|
|
];
|
|
|
|
|
|
|
|
# Install the nos helper script
|
2024-12-07 17:46:48 +00:00
|
|
|
nix.nixos-operations-script.enable = true;
|
2024-12-06 18:04:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
# Install ZSH for all users
|
|
|
|
zsh.enable = true;
|
|
|
|
|
|
|
|
# Configure nano
|
|
|
|
nano.nanorc = ''
|
|
|
|
set tabsize 4
|
|
|
|
set softwrap
|
|
|
|
set autoindent
|
|
|
|
set indicator
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
# Set ZSH as the default shell
|
|
|
|
users.defaultUserShell = pkgs.zsh;
|
|
|
|
}
|