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