summaryrefslogtreecommitdiff
path: root/common/common.nix
blob: 12c91071273c4f461c35619f0cd702383e526eb3 (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
35
36
37
38
{ config, lib, pkgs, inputs, ... }:

{

  nix.registry = {
    nixpkgs.flake = inputs.nixpkgs;
    unstable.flake = inputs.nixpkgs-unstable;
  };
  nix.nixPath = lib.mkForce
    [ "nixpkgs=${inputs.nixpkgs}" "unstable=${inputs.nixpkgs-unstable}"];

  nix.extraOptions = ''
    experimental-features = nix-command flakes
  '';

  services.journald.extraConfig = "MaxRetentionSec=48h";

  
  i18n.defaultLocale = "en_IE.UTF-8";
  i18n.supportedLocales = [ "de_DE.UTF-8/UTF-8" "en_IE.UTF-8/UTF-8" ];
  time.timeZone = "Europe/Amsterdam";

  environment.systemPackages = with pkgs; [
    wget vim htop-vim dnsutils inetutils iftop man-pages gitMinimal
  ];

  console = {
    font = "Lat2-Terminus16";
    useXkbConfig = true;
    colors = [ "002b36" "dc322f" "859900" "b58900" "268bd2" "d33682" "2aa198" "eee8d5" "002b36" "cb4b16" "586e75" "657b83" "839496" "6c71c4" "93a1a1" "fdf6e3" ];
  };

  # we don't actually use the x server, but the console / tty keyboard
  # settings will be derived from this
  services.xserver.layout = "de";
  services.xserver.xkbOptions = "caps:escape";

}