about summary refs log tree commit diff
path: root/machines/sternenseemann/base.nix
blob: 1374316ab58e274d5b19f75049b47713829177bc (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{ config, lib, pkgs, ... }:

let

  inherit (pkgs.vuizvui.profpatsch)
    getBins
    ;

  bins = (getBins pkgs.neovim [ "nvim" ])
      // (getBins pkgs.less [ "less" ])
      ;

in {
  config = {
    boot.cleanTmpDir = true;

    nix.useSandbox = true;
    nix.extraOptions = "gc-keep-derivations = false";
    nixpkgs.config.allowUnfree = true;

    # doesn't work with vuizvui atm
    programs.command-not-found.enable = false;

    services.journald.extraConfig = lib.mkDefault "SystemMaxUse=500M";

    console.keyMap = lib.mkDefault "de-latin1";

    time.timeZone = lib.mkDefault "Europe/Berlin";

    i18n = {
      defaultLocale = "en_US.UTF-8";
    };

    programs.fish = {
      enable = true;
      vendor.completions.enable = true;
      shellAliases = {
        "sd" = "systemctl";
      };
      shellInit = ''
        set -x fish_greeting ""
      '';
    };

    documentation = {
      enable = true;
      dev.enable = true;
      man.enable = true;
    };

    environment.systemPackages = with pkgs; [
      curl wget
      mandoc man-pages
      git
      file htop psmisc tmux
      neovim
    ];

    environment.variables = {
      EDITOR = bins.nvim;
      VISUAL = bins.nvim;
      PAGER = "${bins.less} -R";
    };
  };
}