This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

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