summaryrefslogtreecommitdiff
path: root/machines/iridium/default.nix
blob: 4f755dda8eecbdec6ada1359e43fa4e03ce5c001 (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
{ lib, inputs, depot, ... }:
let
  gitKeys = builtins.fetchurl {
    url = "https://github.com/kbujari.keys";
    sha256 = "0fpa679zkrpx77vangzf3gnidwvmky8ifivn8411xx6albrikaqx";
  };

  inherit (inputs.nixos-hardware.nixosModules)
    common-cpu-intel
    common-gpu-intel
    ;
in
{
  system.stateVersion = "24.11";
  networking.hostName = "iridium";

  users.users.root.initialPassword = "hello";

  imports = [ common-cpu-intel common-gpu-intel ];

  xnet = {
    disk = {
      enable = true;
      device = "/dev/nvme0n1";
    };
    net = {
      sshd.enable = true;
      interface = "enp1s0";
      join = [ "plaza" "kubenet" ];
    };
    nginx.enable = true;
    monitoring.hostGrafana = true;
    gitServer = {
      enable = true;
      gitweb.enable = true;
      keys = lib.splitString "\n" (builtins.readFile gitKeys);
    };
  };
}