mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-16 15:02:38 +00:00
init
This commit is contained in:
commit
2bf50c8969
12 changed files with 784 additions and 0 deletions
59
modules/base.nix
Normal file
59
modules/base.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue