about summary refs log tree commit diff
path: root/common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common.nix')
-rw-r--r--common.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/common.nix b/common.nix
index b012032a..111b5c6c 100644
--- a/common.nix
+++ b/common.nix
@@ -1,4 +1,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";
 }