blob: b6141315a2bfd789ec8a371595bf49fbd5c13e9c (
plain) (
blame)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
{ config, pkgs, ... }:
{
imports = [ ./hardware-configuration.nix ];
hardware = {
graphics = {
extraPackages = with pkgs; [
libvpl
libvdpau-va-gl
sof-firmware
vpl-gpu-rt
];
};
bluetooth.settings.General.Name = "saarni";
};
networking = {
hostName = "saarni";
};
systemd = {
services."enable-wifi-on-boot" = {
description = "Enable wifi on boot";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.util-linux}/bin/rfkill unblock all";
Type = "oneshot";
};
};
network = {
networks = {
"10-lan" = {
matchConfig = {
Name = "enps0";
};
linkConfig = {
Multicast = true;
};
networkConfig = {
DHCP = true;
IPv6AcceptRA = true;
MulticastDNS = true;
LinkLocalAddressing = "ipv6";
DNSSEC = true;
UseDomains = true;
};
dhcpV4Config = {
RouteMetric = 20;
UseDNS = true;
UseMTU = true;
};
ipv6AcceptRAConfig = {
UseMTU = true;
};
};
"11-wlan" = {
matchConfig = {
MACAddress = "64:d6:9a:9e:06:60";
};
linkConfig = {
Multicast = true;
};
networkConfig = {
DHCP = true;
IPv6AcceptRA = true;
MulticastDNS = true;
LinkLocalAddressing = "ipv6";
DNSSEC = true;
UseDomains = true;
};
dhcpV4Config = {
RouteMetric = 100;
UseDNS = true;
UseMTU = true;
SendHostname = true;
};
dhcpV6Config = {
WithoutRA = "solicit";
};
ipv6AcceptRAConfig = {
UseMTU = true;
};
};
};
};
};
environment = {
sessionVariables = { };
};
services = {
godns = {
enable = true;
loadCredential = [ "login_token:${config.age.secrets.duckdns.path}" ];
settings = {
domains = [
{
domain_name = "www.duckdns.org";
sub_domains = [ "saarni" ];
}
];
login_token_file = "$CREDENTIALS_DIRECTORY/login_token";
ip_interface = "wlan0";
interval = 300;
ip_type = "IPv6";
provider = "DuckDNS";
};
};
tlp = {
enable = true;
settings = {
CPU_PERF_POLICY_ON_AC = "performance";
CPU_PERF_POLICY_ON_BAT = "power";
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
START_CHARGE_THRESH_BAT0 = 40;
STOP_CHARGE_TRESH_BAT0 = 20;
};
};
upower = {
enable = true;
criticalPowerAction = "Hibernate";
};
thermald.enable = true;
};
system.stateVersion = "24.05";
}
|