nix/modules/base.nix
2026-03-12 13:51:18 -04:00

59 lines
770 B
Nix

{
pkgs,
username,
...
}: {
nix.enable = true;
nix.settings = {
experimental-features = [
"nix-command"
"flakes"
];
trusted-users = [
"@admin"
username
];
};
nix.gc = {
automatic = true;
interval = {
Weekday = 7;
Hour = 3;
Minute = 0;
};
options = "--delete-older-than 14d";
};
nixpkgs.config.allowUnfree = true;
programs.zsh.enable = true;
environment.shells = [pkgs.zsh];
environment.systemPackages = with pkgs; [
bat
curl
fd
fzf
git
gnupg
go
jq
just
neovim
nodejs_22
python3
ripgrep
rustup
tree
uv
wget
zoxide
];
environment.variables = {
EDITOR = "nvim";
VISUAL = "nvim";
};
}