about summary refs log tree commit diff
path: root/machines/profpatsch/base.nix
blob: 758a6d8aabbe99aa1dd72f1b0dc9ccbd42ec0724 (plain) (blame)
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
35
36
37
38
# Base config shared by all machines
{ pkgs, config, lib, ... }:

let
  # TODO: inject into every config from outside
  myLib  = import ./lib.nix  { inherit pkgs lib; };
  myPkgs = import ./pkgs.nix { inherit pkgs lib myLib; };

in
{
  config = {
    # correctness before speed
    nix.useSandbox = true;

    programs.bash = {
      loginShellInit = ''
        alias c='vim /etc/nixos/configuration.nix'
        alias nsp='nix-shell -p'
        alias nrs='nixos-rebuild switch'
        alias tad='tmux attach -d'
      '';
    };

    environment.systemPackages = with pkgs; [
      curl              # transfer data to/from a URL
      file              # file information
      git               # version control system
      htop              # top replacement
      nmap              # stats about clients in the network
      rsync             # file syncing tool
      tmux              # detachable terminal multiplexer
      wget              # the other URL file fetcher
      myPkgs.vim        # slight improvement over vi
    ];

  };

}