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