aboutsummaryrefslogtreecommitdiff
path: root/hosts/ganymede/config.nix
blob: f4c44308457ce6c752c387f1b6216485a43cc250 (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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{config, ...}: {
  collinux = {
    theme = "terminal";

    secrets = {
      "williams-psk" = {
        file = ./secrets/williams-psk.age;
        owner = "wpa_supplicant";
      };

      "caddy-env".file = ./secrets/caddy-env.age;

      "collin-copyparty-password" = {
        file = ./secrets/collin-copyparty-password.age;
        owner = "copyparty";
      };
      "collin-forgejo-password" = {
        file = ./secrets/collin-forgejo-password.age;
        owner = "forgejo";
      };
      "wireguard-pk" = {
        file = ./secrets/wireguard-pk.age;
        owner = "systemd-network";
      };
    };

    terminal = {
      programs = {
        git = {
          enable = true;
          userName = "Collin Williams";
          userEmail = "96917990+bluedragon1221@users.noreply.github.com";
          installKey = true;
        };
        helix.enable = true;
      };
    };

    system.network = {
      static = {
        ip = "192.168.50.2/24";
        gateway = "192.168.50.1";
      };
      wireless.static = {
        ssid = "williams";
        pskFile = config.collinux.secrets."williams-psk".path;
      };
    };

    services = {
      sshd = {
        enable = true;
        port = 22;
        listenAddr = "0.0.0.0";
        rootLogin = true;
      };

      goaccess = {
        enable = true;
        privateUrl = "stats.ganymede";
      };
      btopweb = {
        enable = true;
        privateUrl = "btop.ganymede";
      };

      cgit = {
        enable = true;
        privateUrl = "git.ganymede";
      };

      minecraft = {
        enable = true;
        listenAddr = "0.0.0.0";
      };

      qbittorrent = {
        enable = true;
        privateUrl = "bittorrent.ganymede";
      };
      copyparty = {
        enable = true;
        listenAddr = "0.0.0.0";
        publicUrl = "up.williamsfam.us.com";
        privateUrl = "files.ganymede";

        users.collin = {
          isAdmin = true;
          passwordFile = config.collinux.secrets."collin-copyparty-password".path;
          hasPublicDir = true;
        };
      };

      jta = {
        enable = true;
        publicUrl = "jta.williamsfam.us.com";
      };

      caddy = {
        enable = true;
        envFile = config.collinux.secrets."caddy-env".path;
      };
    };
  };
}