about summary refs log tree commit diff
path: root/common.nix
blob: 111b5c6c35fe743b5b75048a2f7186cdde14c644 (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
{ config, pkgs, ... }:

{
  imports = import ./modules/module-list.nix;

  nix = {
    package = pkgs.nixUnstable;
    useChroot = true;
    readOnlyStore = true;
    extraOptions = ''
      build-cores = 0
      auto-optimise-store = true
    '';
  };

  boot.loader.grub = {
    enable = true;
    version = 2;
  };

  hardware.cpu.intel.updateMicrocode = true;

  users.defaultUserShell = "/var/run/current-system/sw/bin/zsh";

  networking.wireless.enable = false;
  networking.firewall.enable = false;
  networking.useNetworkd = true;

  i18n.consoleKeyMap = "dvorak";

  programs.ssh.startAgent = false;
  programs.ssh.extraConfig = ''
    ServerAliveInterval 60
  '';

  services.nixosManual.showManual = false;

  environment.systemPackages = with pkgs; [
    binutils
    cacert
    file
    htop
    iotop
    psmisc
    unrar
    unzip
    vim
    vlock
    wget
    xz
    zsh
  ];

  nixpkgs.config = import ./nixpkgs/config.nix;
  system.fsPackages = with pkgs; [ sshfsFuse ];
  time.timeZone = "Europe/Berlin";
}