summaryrefslogtreecommitdiff
path: root/hosts/nixedo/default.nix
blob: 2d187392f043b6f1cc6a87aa3d80e1d52df56ea7 (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
{ lib, pkgs, ... }:
{
  imports = [
    ./hardware.nix
    ../../modules/hyprland/monitor.nix
    ../../modules/usbauth/default.nix
  ];

  networking.hostName = "nixedo";

  boot.loader = {
    efi.canTouchEfiVariables = true;
    grub = {
      enable = true;
      device = "nodev";
      efiSupport = true;
    };
  };

  hyprland.monitors = {
    default = {
      resolution = "preferred";
      position = "auto";
      scale = 1;
    };

    eDP-1 = {
      resolution = "preferred";
      position = "auto";
      scale = 1;
      bar.enable = true;
    };
  };

  webtray.instances = {
    element = {
      url = "https://chat.nathanreiner.xyz";
      autoStart = true;
      openInWindow = false;
    };
    syncthing-tray = {
      url = "http://localhost:8384";
      autoStart = true;
      openInWindow = false;
    };
  };

  usbauth = {
    device = "root";
    uuid = "543f281c-4feb-4a5a-b51b-99114fa4b8a1";
    keyname = "n8-tuxedo";
  };

  networking.networkmanager.fccUnlockScripts = [
    {
      id = "105b:e0ab";
      path = "${pkgs.modemmanager}/share/ModemManager/fcc-unlock.available.d/105b:e0ab";
    }
  ];

  systemd.services.ModemManager = {
    enable = lib.mkForce true;
    path = [ pkgs.libqmi ];
    wantedBy = [
      "multi-user.target"
      "network.target"
    ];
  };

  system.stateVersion = "24.05";
}