diff options
| author | Vineet Kumar <git@vineetk.net> | 2026-05-22 18:12:55 -0400 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2026-05-22 18:12:55 -0400 |
| commit | 7d43d907a63a62ca2e30450ad9e214efdc156761 (patch) | |
| tree | 1ede16164c08874c9bef6fc444a4bb3e8a16f08b | |
| parent | 0f3d530a5bdc4c5c0cda82eb367f90752b07397d (diff) | |
demiurge: do some quoting and indenting
| -rw-r--r-- | epistemia/files/emacs/.config/emacs/init.el | 2 | ||||
| -rw-r--r-- | epistemia/systems/demiurge.scm | 102 |
2 files changed, 52 insertions, 52 deletions
diff --git a/epistemia/files/emacs/.config/emacs/init.el b/epistemia/files/emacs/.config/emacs/init.el index fdc8d33..af34f60 100644 --- a/epistemia/files/emacs/.config/emacs/init.el +++ b/epistemia/files/emacs/.config/emacs/init.el | |||
| @@ -544,7 +544,7 @@ | |||
| 544 | :custom | 544 | :custom |
| 545 | (notmuch-show-logo nil) | 545 | (notmuch-show-logo nil) |
| 546 | (notmuch-tree-outline-enabled t) | 546 | (notmuch-tree-outline-enabled t) |
| 547 | (notmuch-multipart/alternative-discouraged (list "text/html" "multipart/related"))) | 547 | (notmuch-multipart/alternative-discouraged '("text/html" "multipart/related"))) |
| 548 | 548 | ||
| 549 | ;; TODO: needs NOTMUCH_PROFILE set or update package to git | 549 | ;; TODO: needs NOTMUCH_PROFILE set or update package to git |
| 550 | ;; (use-package notmuch-indicator | 550 | ;; (use-package notmuch-indicator |
diff --git a/epistemia/systems/demiurge.scm b/epistemia/systems/demiurge.scm index 590c979..617d001 100644 --- a/epistemia/systems/demiurge.scm +++ b/epistemia/systems/demiurge.scm | |||
| @@ -45,9 +45,9 @@ | |||
| 45 | (list | 45 | (list |
| 46 | (nginx-location-configuration | 46 | (nginx-location-configuration |
| 47 | (uri "/") | 47 | (uri "/") |
| 48 | (body (list (string-append "proxy_pass http://127.0.0.1:" (number->string proxy-port) ";") | 48 | (body `(,(string-append "proxy_pass http://127.0.0.1:" (number->string proxy-port) ";") |
| 49 | "proxy_set_header Upgrade $http_upgrade;" | 49 | "proxy_set_header Upgrade $http_upgrade;" |
| 50 | "proxy_set_header Connection \"upgrade\";"))))))) | 50 | "proxy_set_header Connection \"upgrade\";"))))))) |
| 51 | 51 | ||
| 52 | (operating-system | 52 | (operating-system |
| 53 | (inherit base-system) | 53 | (inherit base-system) |
| @@ -62,11 +62,11 @@ | |||
| 62 | %base-user-accounts)) | 62 | %base-user-accounts)) |
| 63 | 63 | ||
| 64 | (kernel linux-6.18) | 64 | (kernel linux-6.18) |
| 65 | (kernel-arguments (list "net.ifnames=0" | 65 | (kernel-arguments '("net.ifnames=0" |
| 66 | "modprobe.blacklist=snd_hda_intel" | 66 | "modprobe.blacklist=snd_hda_intel" |
| 67 | "amdgpu.gfxoff=0" | 67 | "amdgpu.gfxoff=0" |
| 68 | "amdgpu.aspm=0" | 68 | "amdgpu.aspm=0" |
| 69 | "amdgpu.runpm=0")) | 69 | "amdgpu.runpm=0")) |
| 70 | (kernel-loadable-modules (list (list zfs-linux "module"))) | 70 | (kernel-loadable-modules (list (list zfs-linux "module"))) |
| 71 | 71 | ||
| 72 | (initrd (lambda (file-systems . args) | 72 | (initrd (lambda (file-systems . args) |
| @@ -137,16 +137,16 @@ | |||
| 137 | (simple-service 'gpu-power-cap | 137 | (simple-service 'gpu-power-cap |
| 138 | shepherd-root-service-type | 138 | shepherd-root-service-type |
| 139 | (list (shepherd-service | 139 | (list (shepherd-service |
| 140 | (provision '(gpu-power-cap)) | 140 | (provision '(gpu-power-cap)) |
| 141 | (requirement '(udev)) | 141 | (requirement '(udev)) |
| 142 | (one-shot? #t) | 142 | (one-shot? #t) |
| 143 | (documentation "Set GPU power cap on boot") | 143 | (documentation "Set GPU power cap on boot") |
| 144 | (start #~(make-forkexec-constructor | 144 | (start #~(make-forkexec-constructor |
| 145 | (list #$(file-append bash "/bin/bash") "-c" | 145 | (list #$(file-append bash "/bin/bash") "-c" |
| 146 | (string-append | 146 | (string-append |
| 147 | "echo 294000000 > /sys/class/drm/card0/device/hwmon/hwmon*/power1_cap; " | 147 | "echo 294000000 > /sys/class/drm/card0/device/hwmon/hwmon*/power1_cap; " |
| 148 | "echo 294000000 > /sys/class/drm/card1/device/hwmon/hwmon*/power1_cap")))) | 148 | "echo 294000000 > /sys/class/drm/card1/device/hwmon/hwmon*/power1_cap")))) |
| 149 | (stop #~(make-kill-destructor))))) | 149 | (stop #~(make-kill-destructor))))) |
| 150 | (service seatd-service-type) | 150 | (service seatd-service-type) |
| 151 | (service iptables-service-type) | 151 | (service iptables-service-type) |
| 152 | (service static-networking-service-type | 152 | (service static-networking-service-type |
| @@ -196,20 +196,20 @@ | |||
| 196 | (pre-up '("while [ ! -f /run/secrets/wg0_demiurge ]; do sleep 1; done" | 196 | (pre-up '("while [ ! -f /run/secrets/wg0_demiurge ]; do sleep 1; done" |
| 197 | "ip route replace 185.157.162.7 via 192.168.1.1 dev eth0")) | 197 | "ip route replace 185.157.162.7 via 192.168.1.1 dev eth0")) |
| 198 | (post-up | 198 | (post-up |
| 199 | (list "ip rule add fwmark 0x1 table 100 priority 100" | 199 | `("ip rule add fwmark 0x1 table 100 priority 100" |
| 200 | "ip rule add fwmark 51820 table 100 priority 100" | 200 | "ip rule add fwmark 51820 table 100 priority 100" |
| 201 | "ip route replace default via 192.168.1.1 dev eth0 table 100" | 201 | "ip route replace default via 192.168.1.1 dev eth0 table 100" |
| 202 | #~(string-append #$(file-append iptables "/sbin/iptables") " -t mangle -A PREROUTING -i eth0 -d 192.168.1.2 -m conntrack --ctstate NEW -j CONNMARK --set-mark 0x1") | 202 | ,#~(string-append #$(file-append iptables "/sbin/iptables") " -t mangle -A PREROUTING -i eth0 -d 192.168.1.2 -m conntrack --ctstate NEW -j CONNMARK --set-mark 0x1") |
| 203 | #~(string-append #$(file-append iptables "/sbin/iptables") " -t mangle -A PREROUTING -i eth0 -j CONNMARK --restore-mark") | 203 | ,#~(string-append #$(file-append iptables "/sbin/iptables") " -t mangle -A PREROUTING -i eth0 -j CONNMARK --restore-mark") |
| 204 | #~(string-append #$(file-append iptables "/sbin/iptables") " -t mangle -A OUTPUT -m conntrack --ctstate ESTABLISHED,RELATED -j CONNMARK --restore-mark"))) | 204 | ,#~(string-append #$(file-append iptables "/sbin/iptables") " -t mangle -A OUTPUT -m conntrack --ctstate ESTABLISHED,RELATED -j CONNMARK --restore-mark"))) |
| 205 | (post-down | 205 | (post-down |
| 206 | (list "ip route del 185.157.162.7 via 192.168.1.1 dev eth0" | 206 | `("ip route del 185.157.162.7 via 192.168.1.1 dev eth0" |
| 207 | "ip rule del fwmark 0x1 table 100" | 207 | "ip rule del fwmark 0x1 table 100" |
| 208 | "ip rule del fwmark 51820 table 100" | 208 | "ip rule del fwmark 51820 table 100" |
| 209 | "ip route flush table 100" | 209 | "ip route flush table 100" |
| 210 | #~(string-append #$(file-append iptables "/sbin/iptables") " -t mangle -D PREROUTING -i eth0 -d 192.168.1.2 -m conntrack --ctstate NEW -j CONNMARK --set-mark 0x1") | 210 | ,#~(string-append #$(file-append iptables "/sbin/iptables") " -t mangle -D PREROUTING -i eth0 -d 192.168.1.2 -m conntrack --ctstate NEW -j CONNMARK --set-mark 0x1") |
| 211 | #~(string-append #$(file-append iptables "/sbin/iptables") " -t mangle -D PREROUTING -i eth0 -j CONNMARK --restore-mark") | 211 | ,#~(string-append #$(file-append iptables "/sbin/iptables") " -t mangle -D PREROUTING -i eth0 -j CONNMARK --restore-mark") |
| 212 | #~(string-append #$(file-append iptables "/sbin/iptables") " -t mangle -D OUTPUT -m conntrack --ctstate ESTABLISHED,RELATED -j CONNMARK --restore-mark"))) | 212 | ,#~(string-append #$(file-append iptables "/sbin/iptables") " -t mangle -D OUTPUT -m conntrack --ctstate ESTABLISHED,RELATED -j CONNMARK --restore-mark"))) |
| 213 | (peers | 213 | (peers |
| 214 | (list | 214 | (list |
| 215 | (wireguard-peer | 215 | (wireguard-peer |
| @@ -306,31 +306,31 @@ | |||
| 306 | (simple-service 'llm-router | 306 | (simple-service 'llm-router |
| 307 | shepherd-root-service-type | 307 | shepherd-root-service-type |
| 308 | (list (shepherd-service | 308 | (list (shepherd-service |
| 309 | (provision '(llm-router)) | 309 | (provision '(llm-router)) |
| 310 | (requirement '(user-processes networking guix-daemon)) | 310 | (requirement '(user-processes networking guix-daemon)) |
| 311 | (documentation "llm-router service") | 311 | (documentation "llm-router service") |
| 312 | (start #~(make-forkexec-constructor | 312 | (start #~(make-forkexec-constructor |
| 313 | (list "/home/vin/.config/guix/current/bin/guix" "shell" | 313 | '("/home/vin/.config/guix/current/bin/guix" "shell" |
| 314 | "-m" "/data/src/public/llm-router/manifest.scm" | 314 | "-m" "/data/src/public/llm-router/manifest.scm" |
| 315 | "--" "python3" "app.py") | 315 | "--" "python3" "app.py") |
| 316 | #:user "vin" | 316 | #:user "vin" |
| 317 | #:directory "/data/src/public/llm-router" | 317 | #:directory "/data/src/public/llm-router" |
| 318 | #:log-file "/var/log/llm-router.log")) | 318 | #:log-file "/var/log/llm-router.log")) |
| 319 | (stop #~(make-kill-destructor))))) | 319 | (stop #~(make-kill-destructor))))) |
| 320 | (simple-service 'sdui | 320 | (simple-service 'sdui |
| 321 | shepherd-root-service-type | 321 | shepherd-root-service-type |
| 322 | (list (shepherd-service | 322 | (list (shepherd-service |
| 323 | (provision '(sdui)) | 323 | (provision '(sdui)) |
| 324 | (requirement '(user-processes networking guix-daemon)) | 324 | (requirement '(user-processes networking guix-daemon)) |
| 325 | (documentation "sdui service") | 325 | (documentation "sdui service") |
| 326 | (start #~(make-forkexec-constructor | 326 | (start #~(make-forkexec-constructor |
| 327 | (list "/home/vin/.config/guix/current/bin/guix" "shell" | 327 | '("/home/vin/.config/guix/current/bin/guix" "shell" |
| 328 | "-m" "/data/src/public/sdui/manifest.scm" | 328 | "-m" "/data/src/public/sdui/manifest.scm" |
| 329 | "--" "python3" "app.py") | 329 | "--" "python3" "app.py") |
| 330 | #:user "vin" | 330 | #:user "vin" |
| 331 | #:directory "/data/src/public/sdui" | 331 | #:directory "/data/src/public/sdui" |
| 332 | #:log-file "/var/log/sdui.log")) | 332 | #:log-file "/var/log/sdui.log")) |
| 333 | (stop #~(make-kill-destructor))))) | 333 | (stop #~(make-kill-destructor))))) |
| 334 | ;; netx three temporary | 334 | ;; netx three temporary |
| 335 | (service dbus-root-service-type) | 335 | (service dbus-root-service-type) |
| 336 | (service rootless-podman-service-type | 336 | (service rootless-podman-service-type |
