2021-08-21 16:47:21 +00:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2021-10-24 20:56:43 +00:00
|
|
|
boot.kernelPackages = lib.mkOverride 2000 pkgs.linuxPackages_latest;
|
2021-08-21 16:47:21 +00:00
|
|
|
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
|
2021-10-24 18:29:02 +00:00
|
|
|
pavucontrol
|
|
|
|
dosbox
|
2021-08-21 16:47:21 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
2021-10-24 21:21:31 +00:00
|
|
|
apt = "echo 'please use nix-env -iA nixos.<packagename> instead to install packages.'";
|
2021-08-21 16:47:21 +00:00
|
|
|
};
|
2021-10-24 20:43:11 +00:00
|
|
|
|
|
|
|
users.mutableUsers = false;
|
|
|
|
users.users.c3h = {
|
|
|
|
isNormalUser = true;
|
|
|
|
password = "c3h";
|
|
|
|
extraGroups = [ "wheel" ];
|
|
|
|
};
|
2021-08-21 16:47:21 +00:00
|
|
|
}
|