summaryrefslogtreecommitdiffstats
path: root/lass/1systems/styx
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-09-07 12:26:31 +0200
committerlassulus <git@lassul.us>2023-09-07 12:40:43 +0200
commit2e5167de1560ad0d7b8e294c72e1913f694160c2 (patch)
treeb618daa9f125650e9276bae7848f854c48d6c95e /lass/1systems/styx
parent6a3a423dad19264c0c42821c7676e85ecc122d21 (diff)
lass: migrate awayriplass
Diffstat (limited to 'lass/1systems/styx')
-rw-r--r--lass/1systems/styx/config.nix116
-rw-r--r--lass/1systems/styx/physical.nix38
2 files changed, 0 insertions, 154 deletions
diff --git a/lass/1systems/styx/config.nix b/lass/1systems/styx/config.nix
deleted file mode 100644
index 988cbca75..000000000
--- a/lass/1systems/styx/config.nix
+++ /dev/null
@@ -1,116 +0,0 @@
-{ config, pkgs, ... }:
-
-with import <stockholm/lib>;
-{
- imports = [
- <stockholm/lass>
-
- <stockholm/lass/2configs/mouse.nix>
- <stockholm/lass/2configs/retiolum.nix>
- <stockholm/lass/2configs/baseX.nix>
- <stockholm/lass/2configs/pipewire.nix>
- <stockholm/lass/2configs/exim-retiolum.nix>
- <stockholm/lass/2configs/browsers.nix>
- <stockholm/lass/2configs/programs.nix>
- <stockholm/lass/2configs/nfs-dl.nix>
- <stockholm/lass/2configs/yellow-mounts/samba.nix>
- <stockholm/lass/2configs/gg23.nix>
- <stockholm/lass/2configs/hass>
- <stockholm/lass/2configs/green-host.nix>
- <stockholm/krebs/2configs/news-host.nix>
- # <stockholm/lass/2configs/br.nix>
- <stockholm/lass/2configs/fetchWallpaper.nix>
- <stockholm/lass/2configs/home-media.nix>
- <stockholm/lass/2configs/syncthing.nix>
- # <stockholm/lass/2configs/idc.nix>
- <stockholm/lass/2configs/ppp/umts-stick.nix>
- <stockholm/lass/2configs/snapserver.nix>
- <stockholm/lass/2configs/snapclient.nix>
- <stockholm/lass/2configs/consul.nix>
- ];
-
- krebs.build.host = config.krebs.hosts.styx;
-
- 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 ];
- krebs.power-action.enable = mkForce false;
-
- 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 \
- "$@"
- '')
- ];
-
- users.users.mainUser.openssh.authorizedKeys.keys = [
- config.krebs.users.lass-android.pubkey
- ];
- # http://10.42.0.1:8081/smokeping.fcgi
- services.smokeping = {
- enable = true;
- host = null;
- 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
- '';
- };
-
- # for usb internet
- hardware.usbWwan.enable = true;
-}
-
diff --git a/lass/1systems/styx/physical.nix b/lass/1systems/styx/physical.nix
deleted file mode 100644
index 284bbb333..000000000
--- a/lass/1systems/styx/physical.nix
+++ /dev/null
@@ -1,38 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-{
- imports = [
- ./config.nix
- <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
- ];
-
- boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ];
- boot.initrd.kernelModules = [ "dm-snapshot" ];
- boot.kernelModules = [ "kvm-intel" ];
- boot.extraModulePackages = [ ];
-
- boot.loader.grub.enable = true;
- boot.loader.grub.efiSupport = true;
- boot.loader.grub.device = "/dev/disk/by-id/ata-SanDisk_SSD_G5_BICS4_20248F446514";
- boot.loader.grub.efiInstallAsRemovable = true;
-
- fileSystems."/" =
- { device = "/dev/disk/by-uuid/ee5c9099-17fa-401e-852e-67cb4ae068f4";
- fsType = "ext4";
- };
-
- fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/EAA5-88A9";
- fsType = "vfat";
- };
-
- swapDevices = [ ];
-
- nix.maxJobs = lib.mkDefault 4;
- powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
-
- services.udev.extraRules = ''
- SUBSYSTEM=="net", ATTR{address}=="3c:7c:3f:7e:e2:39", NAME="et0"
- SUBSYSTEM=="net", ATTR{address}=="00:e0:4c:78:91:50", NAME="int0"
- '';
-}