]> xn--ix-yja.es Git - alex.git/commitdiff
Run senpai through nix-portable
authoralex <alex@pdp7.net>
Fri, 1 Aug 2025 18:29:54 +0000 (20:29 +0200)
committeralexpdp7 <alex@corcoles.net>
Fri, 1 Aug 2025 18:37:21 +0000 (20:37 +0200)
scripts/p7s/senpai.py [new file with mode: 0644]
scripts/pyproject.toml
workstation/build_workstation
workstation/modern_irc.md

diff --git a/scripts/p7s/senpai.py b/scripts/p7s/senpai.py
new file mode 100644 (file)
index 0000000..6062987
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/python3
+import os, shutil, subprocess, sys
+
+def main():
+    os.environ["NP_RUNTIME"] = "bwrap"
+    sys.exit(subprocess.run([shutil.which("nix-portable"), "nix", "run", "nixpkgs#senpai"]).returncode)
index 69b6ab266af2c30da24b1234391ff5d87f3d4381..b7b5ecf6865e6cb586e5f0b0cf7246bff19779d0 100644 (file)
@@ -28,3 +28,4 @@ setup_emacs = 'p7s.emacs:setup_emacs'
 setup_ubpkg = 'p7s.ubpkg:setup_ubpkg'
 setup_paperwm = 'p7s.paperwm:setup_paperwm'
 setup_x12 = 'p7s.x12:setup_x12'
+senpai = 'p7s.senpai:main'
index cb58db30df8c3c456d817065016e505d2cbeb93d..fd3d82fc4fde87b5142f251232cf1325a252195d 100755 (executable)
@@ -29,7 +29,6 @@ set -ue
                     --package qemu-img \
                     --package cdrtools \
                     --package mailutils \
-                    --package senpai \
                     --aur-package telegram-tdlib-purple-minimal-git \
                     --aur-package bitlbee-libpurple \
                     workstation
index 5729d5dfb15bbf056372e67df3fc5d2708fe325c..1599d3a3ac4b9f92c2f94bfddd469ec355667599 100644 (file)
@@ -31,10 +31,10 @@ With this setup, I can:
 
 # Set up
 
-My [workstation container image](build_workstation) includes Bitlbee, and the Telegram/Bitlbee adapter.
+My [workstation container image](build_workstation) includes Soju, Bitlbee, and the Telegram/Bitlbee adapter.
 I have Python scripts that configure [soju](../scripts/p7s/soju.py) and [Bitlbee](../scripts/p7s/bitlbee.py) as persistent systemd services running as containers.
 
-The container image also includes Senpai, which I run using [distrobox](https://distrobox.it/).
+I use [Senpai](https://git.sr.ht/~delthas/senpai/) through [nix-portable](https://github.com/DavHau/nix-portable).
 
 I install Goguma on my phone using [F-Droid](https://f-droid.org/).