nixos/configuration.nix

65 lines
1.3 KiB
Nix
Raw Normal View History

# System configuration and packages for my personal NixOS setup
{ config, pkgs, ... }:
{
imports = [
# include local machine/environment config
./local.nix
./programs
];
nixpkgs.config.allowUnfree = true;
2024-05-01 16:03:18 +00:00
nix.settings.experimental-features = ["nix-command" "flakes" ];
environment.systemPackages = with pkgs; [
fishPlugins.tide
neovim
wget
2024-05-01 16:03:18 +00:00
curl
git
htop
btop
dig
2024-05-01 15:13:32 +00:00
eza
2024-05-28 16:54:02 -04:00
inetutils
2024-05-29 17:09:15 -04:00
mosh
2024-05-01 16:54:10 -04:00
traceroute
];
environment.shellAliases = {
vi = "nvim";
vim = "nvim";
2024-05-01 15:13:32 +00:00
ll = "eza -alo --group-directories-first";
tree = "eza -lT";
};
2024-05-01 16:03:18 +00:00
services.openssh = {
enable = true;
settings = {
X11Forwarding = true;
PermitRootLogin = "no";
};
openFirewall = true;
};
programs.direnv.enable = true;
users.defaultUserShell = pkgs.fish;
2024-05-03 12:12:22 -04:00
programs.tmux = {
enable = true;
shortcut = "a"; # changes default shortcut to ctrl-a from ctrl-b
extraConfig = ''
set-option -g mouse on
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
'';
};
services.tailscale.enable = true;
services.tailscale.useRoutingFeatures = "client";
system.stateVersion = "23.05";
}