2024-06-24 16:24:21 +00:00
|
|
|
# Modules common to all systems
|
2024-08-23 18:15:54 +00:00
|
|
|
{
|
2024-09-09 03:47:53 +00:00
|
|
|
pkgs,
|
2024-12-06 16:46:10 +00:00
|
|
|
namespace,
|
2024-08-23 18:15:54 +00:00
|
|
|
...
|
|
|
|
}:
|
2024-06-24 16:24:21 +00:00
|
|
|
|
|
|
|
{
|
2024-12-06 16:46:10 +00:00
|
|
|
${namespace} = {
|
2024-12-05 21:58:44 +00:00
|
|
|
# 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
|
|
|
|
];
|
2024-06-24 16:24:21 +00:00
|
|
|
|
2024-12-05 21:58:44 +00:00
|
|
|
# Install the nos helper script
|
|
|
|
nixos-operations-script.enable = true;
|
|
|
|
};
|
2024-09-28 17:18:26 +00:00
|
|
|
|
2024-12-03 23:05:57 +00:00
|
|
|
programs = {
|
|
|
|
# Install ZSH for all users
|
|
|
|
zsh.enable = true;
|
2024-08-23 18:15:54 +00:00
|
|
|
|
2024-12-03 23:05:57 +00:00
|
|
|
# Configure nano
|
|
|
|
nano.nanorc = ''
|
|
|
|
set tabsize 4
|
|
|
|
set softwrap
|
|
|
|
set autoindent
|
|
|
|
set indicator
|
|
|
|
'';
|
2024-06-24 16:24:21 +00:00
|
|
|
};
|
2024-12-03 23:05:57 +00:00
|
|
|
|
|
|
|
# Set ZSH as the default shell
|
|
|
|
users.defaultUserShell = pkgs.zsh;
|
2024-06-24 16:24:21 +00:00
|
|
|
}
|