This repository has no description
2.1 kB
102 lines
1{
2 pkgs,
3 ...
4}:
5
6{
7 imports = [
8 ../../configs
9 ../../configs/retiolum.nix
10 ../../configs/pipewire.nix
11 ../../configs/yellow-mounts/samba.nix
12 ../../configs/n8n.nix
13 ../../configs/green-host.nix
14 ../../configs/syncthing.nix
15 ../../configs/ppp/umts-stick.nix
16 ../../configs/snapserver.nix
17 ../../configs/snapclient.nix
18 ../../configs/consul.nix
19 ];
20
21 environment.systemPackages = with pkgs; [
22 wol
23 (writers.writeDashBin "wake-alien" ''
24 ${wol}/bin/wol -h 10.42.0.255 10:65:30:68:83:a3
25 '')
26 (writers.writeDashBin "iptv" ''
27 set -efu
28 /run/current-system/sw/bin/mpv \
29 --audio-display=no --audio-channels=stereo \
30 --audio-samplerate=48000 --audio-format=s16 \
31 --ao-pcm-file=/run/snapserver/snapfifo --ao=pcm \
32 --audio-delay=-1 \
33 --playlist=https://iptv-org.github.io/iptv/index.nsfw.m3u \
34 --idle=yes \
35 --input-ipc-server=/tmp/mpv.ipc \
36 "$@"
37 '')
38 ];
39
40 networking.firewall.allowedTCPPorts = [ 80 ];
41 services.smokeping = {
42 enable = true;
43 host = null;
44 targetConfig = ''
45 probe = FPing
46 menu = top
47 title = top
48
49 + Local
50 menu = Local
51 title = Local Network
52 ++ LocalMachine
53 menu = Local Machine
54 title = This host
55 host = localhost
56
57 + Internet
58 menu = internet
59 title = internet
60
61 ++ CloudflareDNS
62 menu = Cloudflare DNS
63 title = Cloudflare DNS server
64 host = 1.1.1.1
65
66 ++ GoogleDNS
67 menu = Google DNS
68 title = Google DNS server
69 host = 8.8.8.8
70
71 + retiolum
72 menu = retiolum
73 title = retiolum
74
75 ++ gum
76 menu = gum.r
77 title = gum.r
78 host = gum.r
79
80 ++ ni
81 menu = ni.r
82 title = ni.r
83 host = ni.r
84
85 ++ neoprism
86 menu = neoprism.r
87 title = neoprism.r
88 host = neoprism.r
89 '';
90 };
91
92 # for usb internet
93 hardware.usbWwan.enable = true;
94
95 swapDevices = [
96 {
97 device = "/swapfile";
98 size = 8192;
99 }
100 ];
101 services.earlyoom.enable = true;
102}