Files
bankrupt/home-manager/common.nix
T
2025-11-15 23:17:12 +08:00

60 lines
1.1 KiB
Nix

# Common configuration shared across all platforms
{
inputs,
lib,
config,
pkgs,
...
}: {
nixpkgs = {
# You can add overlays here
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
inputs.self.overlays.additions
inputs.self.overlays.modifications
inputs.self.overlays.unstable-packages
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
};
};
# Enable home-manager
programs.home-manager.enable = true;
# Basic packages everyone should have
home.packages = with pkgs; [
# Archives
zip
unzip
# Utils
ripgrep # Better grep
fd # Better find
jq # JSON processor
yq-go # YAML processor
# System tools
htop
tree
wget
curl
];
# Basic git configuration
programs.git = {
enable = true;
extraConfig = {
init.defaultBranch = "main";
pull.rebase = true;
push.autoSetupRemote = true;
};
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "24.05";
}