summary refs log tree commit diff
path: root/machines/bismuth/default.nix
blob: f8d6b51d708f43c71b4bb3170685525756015a78 (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
{ ... }:

{
  imports = [
    ../../modules/common.nix

    ./hardware.nix
    ./devices.nix

    ../../modules/nvidia.nix
  ];

  networking.hostName = "Bismuth";

  # run binary cache for slower machines
  services.nix-serve = {
    enable = true;
    # note: can we get this value from somewhere?
    bindAddress = "100.85.58.31"; # bismuth tailnet ip
    secretKeyFile = "/var/bismuth-cache.pem";
  };

  # expose vm web interface to tailnet
  services.tailscale.extraUpFlags = [
    "--advertise-routes=192.168.122.100/32"
  ];

  # set monitor configuration for gdm
  systemd.tmpfiles.rules = [
    "L+ /run/gdm/.config/monitors.xml - - - - ${../../configs/monitors.xml}"
  ];

  system.stateVersion = "23.11";
}