forked from Yuka/c3h-nixfiles
initial commit
This commit is contained in:
commit
70b89988a9
15 changed files with 485 additions and 0 deletions
53
common/default.nix
Normal file
53
common/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
||||
boot.kernelParams = [ "quiet" ];
|
||||
|
||||
services.openssh.enable = true;
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
nix.gc.automatic = lib.mkDefault true;
|
||||
nix.gc.options = lib.mkDefault "--delete-older-than 1d";
|
||||
nix.trustedUsers = [ "root" "@wheel" ];
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "vim"; # fight me :-)
|
||||
|
||||
# automatically runs `nix-env -iA nixos.$package` when
|
||||
# someone tries to run something that is not installed
|
||||
NIX_AUTO_INSTALL = "1";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
alacritty.terminfo
|
||||
kitty.terminfo
|
||||
rxvt_unicode.terminfo
|
||||
termite.terminfo
|
||||
bat
|
||||
bottom
|
||||
exa
|
||||
fd
|
||||
git
|
||||
htop
|
||||
nload
|
||||
ripgrep
|
||||
rsync
|
||||
tcpdump
|
||||
tmux
|
||||
vim
|
||||
wget
|
||||
jq
|
||||
];
|
||||
|
||||
programs.bash.shellAliases = {
|
||||
".." = "cd ..";
|
||||
use = "nix-shell -p";
|
||||
cat = "bat --style=header";
|
||||
grep = "rg";
|
||||
ls = "exa";
|
||||
ll = "exa -l";
|
||||
la = "exa -la";
|
||||
tree = "exa -T";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue