2020-11-23 10:32:23 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
with import <stockholm/lib>;
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
<stockholm/lass>
|
|
|
|
|
|
|
|
<stockholm/lass/2configs/mouse.nix>
|
|
|
|
<stockholm/lass/2configs/retiolum.nix>
|
|
|
|
<stockholm/lass/2configs/baseX.nix>
|
2022-09-18 10:17:18 +00:00
|
|
|
<stockholm/lass/2configs/pipewire.nix>
|
2020-11-23 10:32:23 +00:00
|
|
|
<stockholm/lass/2configs/exim-retiolum.nix>
|
|
|
|
<stockholm/lass/2configs/browsers.nix>
|
|
|
|
<stockholm/lass/2configs/programs.nix>
|
|
|
|
<stockholm/lass/2configs/nfs-dl.nix>
|
2023-07-23 21:03:24 +00:00
|
|
|
<stockholm/lass/2configs/yellow-mounts/samba.nix>
|
2021-01-24 16:03:00 +00:00
|
|
|
<stockholm/lass/2configs/gg23.nix>
|
|
|
|
<stockholm/lass/2configs/hass>
|
|
|
|
<stockholm/lass/2configs/green-host.nix>
|
|
|
|
<stockholm/krebs/2configs/news-host.nix>
|
2020-11-23 10:32:23 +00:00
|
|
|
# <stockholm/lass/2configs/br.nix>
|
|
|
|
<stockholm/lass/2configs/fetchWallpaper.nix>
|
|
|
|
<stockholm/lass/2configs/home-media.nix>
|
2021-01-24 16:03:00 +00:00
|
|
|
<stockholm/lass/2configs/syncthing.nix>
|
|
|
|
<stockholm/lass/2configs/sync/sync.nix>
|
2020-11-23 10:32:23 +00:00
|
|
|
# <stockholm/lass/2configs/idc.nix>
|
2021-01-24 16:03:00 +00:00
|
|
|
<stockholm/lass/2configs/ppp/umts-stick.nix>
|
2022-09-18 10:17:18 +00:00
|
|
|
<stockholm/lass/2configs/snapserver.nix>
|
|
|
|
<stockholm/lass/2configs/snapclient.nix>
|
2020-11-23 10:32:23 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
krebs.build.host = config.krebs.hosts.styx;
|
|
|
|
|
2023-07-23 21:03:57 +00:00
|
|
|
networking.firewall.interfaces.int0.allowedTCPPorts = [ config.services.smokeping.port ];
|
|
|
|
networking.firewall.interfaces.retiolum.allowedTCPPorts = [ config.services.smokeping.port ];
|
|
|
|
networking.firewall.interfaces.wiregrill.allowedTCPPorts = [ config.services.smokeping.port ];
|
2021-01-24 16:03:00 +00:00
|
|
|
krebs.power-action.enable = mkForce false;
|
|
|
|
|
2023-07-23 21:04:42 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
wol
|
|
|
|
(writeDashBin "wake-alien" ''
|
|
|
|
${wol}/bin/wol -h 10.42.0.255 10:65:30:68:83:a3
|
|
|
|
'')
|
|
|
|
(writers.writeDashBin "iptv" ''
|
|
|
|
set -efu
|
|
|
|
/run/current-system/sw/bin/mpv \
|
|
|
|
--audio-display=no --audio-channels=stereo \
|
|
|
|
--audio-samplerate=48000 --audio-format=s16 \
|
|
|
|
--ao-pcm-file=/run/snapserver/snapfifo --ao=pcm \
|
|
|
|
--audio-delay=-1 \
|
|
|
|
--playlist=https://iptv-org.github.io/iptv/index.nsfw.m3u \
|
|
|
|
--idle=yes \
|
|
|
|
--input-ipc-server=/tmp/mpv.ipc \
|
|
|
|
"$@"
|
|
|
|
'')
|
|
|
|
];
|
2023-07-23 21:05:01 +00:00
|
|
|
|
|
|
|
users.users.mainUser.openssh.authorizedKeys.keys = [
|
|
|
|
config.krebs.users.lass-android.pubkey
|
|
|
|
];
|
|
|
|
# http://10.42.0.1:8081/smokeping.fcgi
|
2020-11-23 10:32:23 +00:00
|
|
|
services.smokeping = {
|
|
|
|
enable = true;
|
2023-07-23 21:05:01 +00:00
|
|
|
host = null;
|
2020-11-23 10:32:23 +00:00
|
|
|
targetConfig = ''
|
|
|
|
probe = FPing
|
|
|
|
menu = top
|
|
|
|
title = top
|
|
|
|
|
|
|
|
+ Local
|
|
|
|
menu = Local
|
|
|
|
title = Local Network
|
|
|
|
++ LocalMachine
|
|
|
|
menu = Local Machine
|
|
|
|
title = This host
|
|
|
|
host = localhost
|
|
|
|
|
|
|
|
+ Internet
|
|
|
|
menu = internet
|
|
|
|
title = internet
|
|
|
|
|
|
|
|
++ CloudflareDNS
|
|
|
|
menu = Cloudflare DNS
|
|
|
|
title = Cloudflare DNS server
|
|
|
|
host = 1.1.1.1
|
|
|
|
|
|
|
|
++ GoogleDNS
|
|
|
|
menu = Google DNS
|
|
|
|
title = Google DNS server
|
|
|
|
host = 8.8.8.8
|
|
|
|
|
|
|
|
+ retiolum
|
|
|
|
menu = retiolum
|
|
|
|
title = retiolum
|
|
|
|
|
|
|
|
++ gum
|
|
|
|
menu = gum.r
|
|
|
|
title = gum.r
|
|
|
|
host = gum.r
|
|
|
|
|
|
|
|
++ ni
|
|
|
|
menu = ni.r
|
|
|
|
title = ni.r
|
|
|
|
host = ni.r
|
|
|
|
|
|
|
|
++ prism
|
|
|
|
menu = prism.r
|
|
|
|
title = prism.r
|
|
|
|
host = prism.r
|
|
|
|
'';
|
|
|
|
};
|
2023-07-23 21:04:24 +00:00
|
|
|
|
|
|
|
# for usb internet
|
|
|
|
hardware.usbWwan.enable = true;
|
2020-11-23 10:32:23 +00:00
|
|
|
}
|
|
|
|
|