summaryrefslogtreecommitdiff
path: root/hosts/nixedo/default.nix
blob: 3bf358ccf1b0f6b4fe71dc3ea09073f09d9e2e54 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{ 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;
			configurationLimit = 10;
		};
	};

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

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

		HDMI-A-1 = {
			resolution = "preferred";
			position = "auto";
			scale = 1;
			mirror = {
				enable = true;
				monitor = "eDP-1";
			};
		};
	};

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

	usbauth = {
		enable = true;
		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"
		];
	};

	hardware.tuxedo-rs = {
		enable = true;
		tailor-gui.enable = true;
	};

	virtualisation = {
		libvirtd.enable = true;
	};

	system.stateVersion = "24.05";
}