diff --git a/hosts/endurance/default.nix b/hosts/endurance/default.nix index cc4e1e1..cbb7aca 100644 --- a/hosts/endurance/default.nix +++ b/hosts/endurance/default.nix @@ -92,8 +92,6 @@ ''; udev.packages = [pkgs.platformio-core.udev]; - # Linux link via MQTT - lnxlink.enable = true; beszel-agent.enable = true; beszel-agent.key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMkUPOw28Cu2LMuzfmvjT/L2ToNHcADwGyGvSpJ4wH2T"; elements.ollama.enable = true; diff --git a/hosts/endurance/metrics.nix b/hosts/endurance/metrics.nix index 6f2cf2a..36c3bb7 100644 --- a/hosts/endurance/metrics.nix +++ b/hosts/endurance/metrics.nix @@ -39,14 +39,5 @@ ]; }; }; - - # traefik.routes.solid-pod = { - # rule = "Host(`pod.toph.so`)"; - # url = "http://localhost:3000"; - # }; }; - - # systemd.tmpfiles.rules = [ - # "d /var/lib/solid - - - - -" - # ]; } diff --git a/modules/nixos/services/default.nix b/modules/nixos/services/default.nix index 8edd9c3..06b3f8e 100644 --- a/modules/nixos/services/default.nix +++ b/modules/nixos/services/default.nix @@ -1,8 +1,7 @@ {...}: { imports = [ - ./lnxlink.nix - ./beszel.nix ./ollama.nix ./traefik.nix + ./metrics.nix ]; } diff --git a/modules/nixos/services/lnxlink.nix b/modules/nixos/services/lnxlink.nix deleted file mode 100644 index 55bc36a..0000000 --- a/modules/nixos/services/lnxlink.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - config, - pkgs, - lib, - ... -}: -with lib; let - cfg = config.services.lnxlink; -in { - options.services = { - lnxlink = { - enable = mkEnableOption "Enable LNXlink"; - }; - }; - - config = mkIf cfg.enable { - systemd.services.lnxlink = { - enable = true; - wantedBy = ["multi-user.target"]; - serviceConfig = { - # Note: Logging will also be done to the working directory, so logs will - # be lost upon a restart. - WorkingDirectory = "/tmp"; - ExecStart = "${pkgs.harbor.lnxlink}/bin/lnxlink -i -c ${./lnxlink.yaml}"; - }; - }; - }; -} diff --git a/modules/nixos/services/lnxlink.yaml b/modules/nixos/services/lnxlink.yaml deleted file mode 100644 index 67e6360..0000000 --- a/modules/nixos/services/lnxlink.yaml +++ /dev/null @@ -1,84 +0,0 @@ -mqtt: - prefix: lnxlink - clientId: cobalt - server: nanomq.intern.muehl.dev - port: 1883 - auth: - user: cobalt - pass: cobalt - tls: false - keyfile: '' - certfile: '' - ca_certs: '' - discovery: - enabled: true - lwt: - enabled: true - qos: 1 - clear_on_off: true -update_interval: 5 -update_on_change: false -hass_url: null -hass_api: null -modules: null -custom_modules: null -exclude: -- audio_select -- active_window -- bash -- battery -- beacondb -- bluetooth -- boot_select -- brightness -- fullscreen -- gpio -- gpu -- idle -- inference_time -- ir_remote -- keep_alive -- keyboard_hotkeys -- media -- mouse -- network -- notify -- power_profile -- restful -- screen_onoff -- screenshot -- send_keys -- speech_recognition -- systemd -- sys_updates -- steam -- wifi -- webcam -- xdg_open -- wol -- docker -settings: - systemd: null - gpio: - inputs: null - outputs: null - hotkeys: null - battery: - include_batteries: [] - exclude_batteries: [] - disk_usage: - include_disks: [] - exclude_disks: [] - statistics: https://analyzer.bkbilly.workers.dev - bash: - allow_any_command: false - expose: null - mounts: - autocheck: false - directories: [] - ir_remote: - receiver: null - transmitter: null - buttons: [] - restful: - port: 8112 diff --git a/modules/nixos/services/metrics.nix b/modules/nixos/services/metrics.nix new file mode 100644 index 0000000..52a087c --- /dev/null +++ b/modules/nixos/services/metrics.nix @@ -0,0 +1,18 @@ +{...}: { + services = { + tailscale = { + enable = true; + }; + + prometheus.exporters = { + node = { + enable = true; + port = 9000; + }; + # tailscale = { + # enable = true; + # port = 9001; + # }; + }; + }; +} diff --git a/packages/lnxlink/package.nix b/packages/lnxlink/package.nix deleted file mode 100644 index 31fd72a..0000000 --- a/packages/lnxlink/package.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ - pkgs, - lib, - ... -}: -pkgs.python3Packages.buildPythonApplication { - pname = "lnxlink"; - version = "2025.7.0"; - pyproject = true; - - # Linking my fork here which allows for newer versions of setuptools and wheel. - # Also includes some fixes that make the program actually work with NixOS. - src = pkgs.fetchFromGitHub { - owner = "padarom"; - repo = "lnxlink"; - rev = "7202e48"; - hash = "sha256-E2J1d9D5SJWGEutAPAo1BM98cMzH7QrqIz3yrlXpzGE="; - }; - - build-system = with pkgs.python3Packages; [setuptools wheel]; - dependencies = with pkgs.python3Packages; [ - distro - pyyaml - paho-mqtt - requests - psutil - inotify - jeepney - ]; - - meta = { - homepage = "https://github.com/bkbilly/lnxlink"; - description = "Effortlessly manage your Linux machine using MQTT."; - license = lib.licenses.mit; - mainProgram = "lnxlink"; - }; -} diff --git a/packages/oxigraph/package.nix b/packages/oxigraph/package.nix deleted file mode 100644 index b0304f3..0000000 --- a/packages/oxigraph/package.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ - lib, - stdenv, - fetchurl, -}: - -stdenv.mkDerivation rec { - pname = "oxigraph"; - version = "0.5.3-post.1"; - - src = fetchurl { - url = "https://github.com/oxigraph/oxigraph/releases/download/v${version}/oxigraph_v${version}_x86_64_linux_gnu"; - hash = "sha256-6yLJ8wuhGu2GoCWMji+Lt1WoDZxRmTLXVMwKb3+ByRQ="; - }; - - dontUnpack = true; - dontBuild = true; - - installPhase = '' - runHook preInstall - mkdir -p $out/bin - cp $src $out/bin/oxigraph - chmod +x $out/bin/oxigraph - runHook postInstall - ''; - - meta = with lib; { - description = "SPARQL graph database"; - homepage = "https://github.com/oxigraph/oxigraph"; - license = with licenses; [asl20 mit]; - maintainers = []; - mainProgram = "oxigraph"; - platforms = ["x86_64-linux"]; - }; -} diff --git a/secrets/rekeyed/toph.aepplet/0abeaf0474074a50285a177aacd7ec0f-id_ethnuc.age b/secrets/rekeyed/toph.aepplet/0abeaf0474074a50285a177aacd7ec0f-id_ethnuc.age new file mode 100644 index 0000000..50a5900 Binary files /dev/null and b/secrets/rekeyed/toph.aepplet/0abeaf0474074a50285a177aacd7ec0f-id_ethnuc.age differ diff --git a/secrets/rekeyed/toph.aepplet/0f948eedfa8d6e97a197d3e5df42c92e-id_hausgold.age b/secrets/rekeyed/toph.aepplet/0f948eedfa8d6e97a197d3e5df42c92e-id_hausgold.age new file mode 100644 index 0000000..4882452 --- /dev/null +++ b/secrets/rekeyed/toph.aepplet/0f948eedfa8d6e97a197d3e5df42c92e-id_hausgold.age @@ -0,0 +1,10 @@ +age-encryption.org/v1 +-> ssh-ed25519 Sih9FA sjJK2xzSS5NIMYO9oRqdZP31M2DJMlMT17dvMe6QFm8 +mynrRQPbUA3q0Kzq0pSwPaLUjXKRQRi4AWYGQAZDXeg +-> 2!Ioi2-grease 8X6n Z/BVM# c%x9* +rwvXE/SCfEvdqk5AHvLu4viy0o/eVLqzBx6C/b23EFv0jY8RGim7avCRM+AgaSUl +kjTCXxYyVNUVSS4FfNS3/HCCKBWUUDTKKjiOet33Q1jhh3xYP89nAHzjjWN3KmrE +xAY +--- sFHXIDP2M1/uZFVMp+vc085sWpY+TQt3MKTb+p3Kyuo +xqn(HХN_%A}=8^)xZ l!rI2K,hUaC?Hz֥LDP@/ԃԦW~ՓhR7)E)8ivWqz\%&N:J:]vZ2P|ҁx+&dGo#sovbط;Tb 31|]ݞEv{7O<60~HJ&)C4sB[%e Dj/Drin3`Sg/9] X&S75!癵A`{Vt8MV7]i$7j=OMdb:Icnx:| 'Ht<{ ,;,ky?D$B +&-5: `mB}쮸gQÖR&w58ZQ`<ƶo& +%>59WtvwJ?%f  \ No newline at end of file diff --git a/secrets/rekeyed/toph.aepplet/241c114c18645057167f14101ddcdbcb-id_homeassistant.age b/secrets/rekeyed/toph.aepplet/241c114c18645057167f14101ddcdbcb-id_homeassistant.age new file mode 100644 index 0000000..f1b6471 Binary files /dev/null and b/secrets/rekeyed/toph.aepplet/241c114c18645057167f14101ddcdbcb-id_homeassistant.age differ diff --git a/secrets/rekeyed/toph.aepplet/36cddc7069dace3a45c54e3c41272528-config.age b/secrets/rekeyed/toph.aepplet/36cddc7069dace3a45c54e3c41272528-config.age new file mode 100644 index 0000000..43f6050 Binary files /dev/null and b/secrets/rekeyed/toph.aepplet/36cddc7069dace3a45c54e3c41272528-config.age differ diff --git a/secrets/rekeyed/toph.aepplet/68a44c5680f7a6e57f6cc276f6fae690-repoUpdatePAT.age b/secrets/rekeyed/toph.aepplet/68a44c5680f7a6e57f6cc276f6fae690-repoUpdatePAT.age new file mode 100644 index 0000000..8c84fc0 Binary files /dev/null and b/secrets/rekeyed/toph.aepplet/68a44c5680f7a6e57f6cc276f6fae690-repoUpdatePAT.age differ diff --git a/secrets/rekeyed/toph.aepplet/6e09e324e621f167ae6a8b9dc2ca0529-id_alvin.age b/secrets/rekeyed/toph.aepplet/6e09e324e621f167ae6a8b9dc2ca0529-id_alvin.age new file mode 100644 index 0000000..6284f3f Binary files /dev/null and b/secrets/rekeyed/toph.aepplet/6e09e324e621f167ae6a8b9dc2ca0529-id_alvin.age differ diff --git a/secrets/rekeyed/toph.aepplet/a3984008ff2b9a3226656619c81e4c47-emailPassword.age b/secrets/rekeyed/toph.aepplet/a3984008ff2b9a3226656619c81e4c47-emailPassword.age new file mode 100644 index 0000000..4f8906d --- /dev/null +++ b/secrets/rekeyed/toph.aepplet/a3984008ff2b9a3226656619c81e4c47-emailPassword.age @@ -0,0 +1,8 @@ +age-encryption.org/v1 +-> ssh-ed25519 Sih9FA d9oQaF1sdS+4mUZvKWU90rPM3jdb/xaa+LPWwnhpFQQ +Vji46uZEvcIbBALfvguE7u1o9LY6tiWeTXNU33O7WnI +-> vL8-grease i%AP\3gI { -{r^< OC +Ag5+BVEroMpIJUVBfMDzbg4e2ZeInDVmfsGGuAjyXk3bpQ1PButowEYp94tqXFcO +7ym1I8DzL7VfBB+MvSr7DYN7yH6wuopXh+WnPg +--- Ee6HhsFrv9FF48pi8Uh3aIm9gSnOCUEdNJrj9wXLh/Q +Լ&98ރ@;60*icxJg5!W^pqZ&ZFw  \ No newline at end of file diff --git a/secrets/rekeyed/toph.aepplet/bf37e236fcc3c1ce07d32b54d70f80ef-id_europium.age b/secrets/rekeyed/toph.aepplet/bf37e236fcc3c1ce07d32b54d70f80ef-id_europium.age new file mode 100644 index 0000000..f67231b Binary files /dev/null and b/secrets/rekeyed/toph.aepplet/bf37e236fcc3c1ce07d32b54d70f80ef-id_europium.age differ diff --git a/secrets/rekeyed/toph.aepplet/d5d9325b86283f0a1572f2817924fea4-id_github.age b/secrets/rekeyed/toph.aepplet/d5d9325b86283f0a1572f2817924fea4-id_github.age new file mode 100644 index 0000000..b823f5a Binary files /dev/null and b/secrets/rekeyed/toph.aepplet/d5d9325b86283f0a1572f2817924fea4-id_github.age differ diff --git a/secrets/rekeyed/toph.aepplet/f163a86f52bfaee9d516fee4b00a5111-npmrc.age b/secrets/rekeyed/toph.aepplet/f163a86f52bfaee9d516fee4b00a5111-npmrc.age new file mode 100644 index 0000000..a04d554 --- /dev/null +++ b/secrets/rekeyed/toph.aepplet/f163a86f52bfaee9d516fee4b00a5111-npmrc.age @@ -0,0 +1,8 @@ +age-encryption.org/v1 +-> ssh-ed25519 Sih9FA fq3C2igBpOWJjLT9ZYzNTHTIxis4KNxJGqKqxUOFGAA +hh2mbDtaqH9ZfHg4gl7t01sxqueb8VjHwLyAlcGG7uo +-> PpA-grease +OVR9M24Xu72ydIujacdy3E5wY2j1O5yoN197/G2C2Q36gIq/2uxAaYY97zQgaPb8 +ceu566Z0DqfToCVFAptnuRIY6YeIFIOeUA +--- axV+75oHmhVN+nWRivvDNlDokS2oQU4s6SIeLecO3yg +4Ni+$X? [0wInaU˦D,wVvWb̴HIJf#>Muq,ט_"wY؉/$#Ej \ No newline at end of file diff --git a/secrets/rekeyed/toph.endurance/36cddc7069dace3a45c54e3c41272528-config.age b/secrets/rekeyed/toph.endurance/36cddc7069dace3a45c54e3c41272528-config.age new file mode 100644 index 0000000..4a681bf Binary files /dev/null and b/secrets/rekeyed/toph.endurance/36cddc7069dace3a45c54e3c41272528-config.age differ diff --git a/secrets/rekeyed/toph.endurance/dcb82593014313ac12faa7a33834a1aa-config.age b/secrets/rekeyed/toph.endurance/dcb82593014313ac12faa7a33834a1aa-config.age deleted file mode 100644 index 6bf81d9..0000000 Binary files a/secrets/rekeyed/toph.endurance/dcb82593014313ac12faa7a33834a1aa-config.age and /dev/null differ diff --git a/secrets/ssh/config.age b/secrets/ssh/config.age index b2aab66..3fa5b7e 100644 Binary files a/secrets/ssh/config.age and b/secrets/ssh/config.age differ