1
0
Fork 0
nix-configuration/modules/common.nix

46 lines
932 B
Nix
Raw Normal View History

2024-06-24 16:24:21 +00:00
# Modules common to all systems
{
inputs,
2024-09-09 03:47:53 +00:00
pkgs,
...
}:
2024-06-24 16:24:21 +00:00
{
# Install base packages
aux.system.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
# Install the nos helper script
aux.system.nixos-operations-script.enable = true;
# Allow packages from the unstable repo by using 'pkgs.unstable'
nixpkgs.overlays = [
(final: _prev: {
unstable = import inputs.nixpkgs-unstable {
system = final.system;
config.allowUnfree = true;
};
})
];
2024-09-09 03:47:53 +00:00
programs = {
# Install ZSH for all users
zsh.enable = true;
# Configure nano
nano.nanorc = ''
set tabsize 4
set softwrap
set autoindent
set indicator
'';
2024-06-24 16:24:21 +00:00
};
# Set ZSH as the default shell
users.defaultUserShell = pkgs.zsh;
2024-06-24 16:24:21 +00:00
}