summaryrefslogtreecommitdiff
path: root/machines/t1/default.nix
blob: f565fc69f10e39ee0bbcd85e7c140e0eb386014c (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
{ inputs, depot, pkgs, ... }:

let
  inherit (inputs.nixos-hardware.nixosModules)
    common-cpu-amd
    common-gpu-amd
    ;

  inherit (depot.users) kle;
in
{
  imports = [
    common-cpu-amd
    common-gpu-amd
  ];

  system.stateVersion = "24.11";

  users.users.kle = kle.nixos;

  xnet = {
    desktop.enable = true;
    net = {
      interface = "enp5s0";
      join = [ "plaza" ];
      sshd.enable = true;
    };
    disk = {
      enable = true;
      device = "/dev/nvme0n1";
    };
  };

  networking.hostName = "t1";

  programs = {
    steam.enable = true;
    steam.extraCompatPackages = [ pkgs.proton-ge-bin ];
    corectrl = {
      enable = true;
      gpuOverclock.enable = true;
    };
  };

  fileSystems = {
    "/mnt/media" = {
      device = "radon:/radon/media";
      fsType = "nfs";
      options = [ "noauto" "x-systemd.automount" "x-systemd.idle-timeout=600" ];
    };

    "/mnt/gammix" = {
      device = "/dev/disk/by-uuid/bbbb4579-fac9-412e-a831-3034f7d27e04";
      fsType = "ext4";
      options = [ "users" "nofail" "noatime" ];
    };
  };

  services.udev.packages = [ pkgs.ddcutil ];
  environment.shellAliases.b = "${pkgs.ddcutil}/bin/ddcutil setvcp 10";
  boot.kernelModules = [ "i2c-dev" ];

  environment.systemPackages = with pkgs; [
    ddcutil
    prismlauncher
    spotify
  ];
}