summaryrefslogtreecommitdiff
path: root/machines/t1/default.nix
blob: 68bc7b99374bc20527036088eae0e9a43c637c2a (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
{ 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;
    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" ];
  };

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

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