Home

dotnix @3a68db79f60a27b091cf72120f0e7e39fa854192 - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
dotnix / machines / common / nogui / default.nix
- raw
 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
66
67
68
69
70
71
72
73
74
{ pkgs, ... }:
{
  console.colors = [
    "1e1e2e"
    "585b70"

    "bac2de"
    "a6adc8"

    "f38ba8"
    "f38ba8"

    "a6e3a1"
    "a6e3a1"

    "f9e2af"
    "f9e2af"

    "89b4fa"
    "89b4fa"

    "f5c2e7"
    "f5c2e7"

    "94e2d5"
    "94e2d5"
  ];

  time.timeZone = "America/Chicago";
  i18n.defaultLocale = "en_US.UTF-8";
  i18n.extraLocaleSettings = {
    LC_ADDRESS = "en_US.UTF-8";
    LC_IDENTIFICATION = "en_US.UTF-8";
    LC_MEASUREMENT = "en_US.UTF-8";
    LC_MONETARY = "en_US.UTF-8";
    LC_NAME = "en_US.UTF-8";
    LC_NUMERIC = "en_US.UTF-8";
    LC_PAPER = "en_US.UTF-8";
    LC_TELEPHONE = "en_US.UTF-8";
    LC_TIME = "en_US.UTF-8";
  };

  nixpkgs.config.allowUnfree = true;

  nix = {
    gc.automatic = true;
    package = pkgs.nixVersions.stable;
    settings = {
      trusted-users = [
        "@sudo"
        "@wheel"
        "jolheiser"
      ];
      experimental-features = [
        "flakes"
        "nix-command"
        "repl-flake"
      ];
      auto-optimise-store = true;
      warn-dirty = false;
      substituters = [ "https://jolheiser.cachix.org" ];
      trusted-public-keys = [ "jolheiser.cachix.org-1:fiKkfTuHFqDK5ZOVxcqb4InUkKsrTvtMLISid7XvuVg=" ];
    };
  };

  system.activationScripts.diff = {
    supportsDryActivation = true;
    text = ''
      ${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
    '';
  };

  services.tailscale.enable = true;
}