summaryrefslogtreecommitdiff
path: root/hosts/common.nix
blob: 87c6b273e0767ee85f69db76ac9b2b1e56bead61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Shared configuraion regardless of hosts.

{ pkgs, ... }:

{
  # Enable de facto stable features.
  nix.settings.experimental-features = [ "nix-command" "flakes" ];

  # Set ZSH as the shell.
  # https://nixos.wiki/wiki/Command_Shell#Changing_default_shelltrue
  programs.zsh.enable = true;
  environment.shells = [ pkgs.zsh ];
  users.users.linus.shell = pkgs.zsh;

  # Very basic system administration tools.
  environment.systemPackages = with pkgs; [
    tree
    jc
    jq
    vim
    comma
    curl
  ];

  # Aliases that are burned into my muscle memory.
  environment.shellAliases = {
    "mv" = "mv -i";
    "rm" = "rm -i";
    "cp" = "cp -i";
    "ls" = "ls -A --color=auto";
    "grep" = "grep --color=auto";
    "file" = "file --no-dereference";
  };
}