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

  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";
}