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