Compare commits

...
106 Commits
Author SHA1 Message Date
Hilton Chain 2f77ce5db2 rosenthal: linux-cachyos-bore-zen4: Update to 7.3.6-1.
* modules/rosenthal/packages/linux.scm (linux-cachyos-bore-zen4): Update to 7.3.6-1.
2026-11-24 20:13:14 +08:00
Hilton Chain 0dec192155 rosenthal: Add zfs-cachyos.
* modules/rosenthal/packages/file-systems.scm: New file.
2026-11-24 20:13:11 +08:00
Hilton Chain c174d7a009 rosenthal: linux-cachyos-lts-server: Fix kernel-config hash.
Follow-up to 328d7023af.

For some reason emacs-guix doesn't ignore the .jj directory.  Perhaps it's using
guix 1.5.0?
2026-11-24 14:56:17 +08:00
Hilton Chain 357aba2039 rosenthal: linux-cachyos-lts-server: Fix defconfig.
Follow-up to 328d7023af.
2026-11-24 14:47:45 +08:00
Hilton Chain 328d7023af rosenthal: linux-cachyos-lts-server: Update to 6.18.65-1.
* modules/rosenthal/packages/linux.scm (linux-cachyos-lts-server): Update to 6.18.65-1.
2026-11-24 14:46:38 +08:00
Hilton Chain e4dafed2ad rosenthal: Deprecate emacs-majutsu/dolly. 2026-11-24 13:42:25 +08:00
Hilton Chain 17cae93520 rosenthal: Update noctalia shell config for the installer.
* modules/rosenthal/examples/dot-config/noctalia/settings.json: Delete file.
* modules/rosenthal/examples/dot-config/noctalia/settings.toml: New file.
* modules/rosenthal/services/desktop.scm (%rosenthal-skeletons-installer)
  [.local/state/noctalia/settings.toml]: Use it.
  [.local/state/noctalia/.setup-complete]: New empty file.
  [.config/noctalia/settings.json]: Remove.
2026-11-24 11:17:59 +08:00
Hilton Chain fff737cc07 services: home-emacs: Use load-profile from (guix profiles).
* modules/rosenthal/home/services/emacs.scm (home-emacs-package): Use
‘load-profile’ for home-emacs-program and simplify.
2026-11-24 11:17:52 +08:00
Hilton Chain a6736d8030 rosenthal: Remove caddy.
Upstream now has a caddy package in (gnu packages web).
2026-11-22 07:31:51 +00:00
Hilton Chain 00b4c71c87 rosenthal: Deprecate emacs-reader. 2026-11-22 07:31:51 +00:00
Hilton Chain 809e90d7fb services: home-graphical-session-find-socket: Fix reverse. 2026-11-22 07:31:49 +00:00
Hilton Chain bfe0d7379d utils: %nix-wrapper-shell-default-unset-env-vars: Make it an identifier macro and export.
Fixes: #61.
2026-10-30 14:00:44 +08:00
Hilton Chain e0db50c276 utils: Add sri-hash.
* modules/rosenthal/utils/packages.scm (sri-hash): New macro.
2026-10-30 14:00:41 +08:00
Hilton Chain 55d68222f4 services: forgejo: Merge forgejo-init and forgejo shepherd services
...replace profile extension to a custom profile, remove waitpid usage.
2026-10-25 23:03:31 +08:00
Hilton Chain 1c6b3e3cb6 etc: Update index.org. 2026-10-23 22:42:30 +08:00
Hilton Chain 22d0abb36a services: Add home-fish-plugin-stinkpot-service-type.
* modules/rosenthal/services/shellutils.scm
  (<home-stinkpot-configuration>): New data type.
  (home-fish-plugin-stinkpot-service-type): New variable.
2026-10-23 21:37:02 +08:00
Hilton Chain 0daf8b388b rosenthal: Add stinkpot.
* modules/rosenthal/packages/shellutils.scm: New file.
2026-10-23 21:36:59 +08:00
Hilton Chain a19f1684cf rosenthal: emacs-majutsu/dolly: Update to 0.6.0-7.19856a9.
* modules/rosenthal/packages/emacs-xyz.scm (emacs-majutsu/dolly): Update to 0.6.0-7.19856a9.
2026-10-23 20:36:21 +08:00
Hilton Chain a4de900221 rosenthal: %alloy-source-aarch64-linux: Update to 1.21.2.
* modules/rosenthal/packages/binaries.scm (%alloy-source-aarch64-linux): Update to 1.21.2.
2026-10-23 20:36:21 +08:00
Hilton Chain a6124dd914 rosenthal: %alloy-source-x86_64-linux: Update to 1.21.2.
* modules/rosenthal/packages/binaries.scm (%alloy-source-x86_64-linux): Update to 1.21.2.
2026-10-23 20:36:21 +08:00
Hilton Chain 0e4f53ed58 services: forgejo: Move shepherd requirements to forgejo-init. 2026-10-23 20:36:19 +08:00
Hilton Chain c3781eefc8 rosenthal: cloudflared: Update to 2026.10.3.
* modules/rosenthal/packages/networking.scm (cloudflared): Update to 2026.10.3.
  [arguments] <#:vendor-hash>: Update.
2026-10-23 03:37:46 +08:00
Hilton Chain 8b1ecc349e rosenthal: mihomo: Update to 1.19.33.
* modules/rosenthal/packages/networking.scm (mihomo): Update to 1.19.33.
  [arguments] <#:vendor-hash>: Update.
2026-10-23 03:37:46 +08:00
Hilton Chain cdb841b71e rosenthal: mautrix-telegram: Update to 0.2610.0.
* modules/rosenthal/packages/messaging.scm (mautrix-telegram): Update to 0.2610.0.
  [arguments] <#:vendor-hash>: Update.
2026-10-23 03:37:46 +08:00
Hilton Chain 18cef20133 rosenthal: tailscale: Update to 1.104.2.
* modules/rosenthal/packages/networking.scm (tailscale): Update to 1.104.2.
  [arguments] <#:vendor-hash>: Update.
2026-10-23 03:37:46 +08:00
Hilton Chain 078c2d7983 rosenthal: caddy/dolly: Update to 2026.10.23.
* modules/rosenthal/packages/web.scm (caddy/dolly): Update to 2026.10.23.
2026-10-23 03:37:45 +08:00
Hilton Chain 877fe611c6 rosenthal: noctalia-greeter: Update to 1.7.0.
* modules/rosenthal/packages/wm.scm (noctalia-greeter): Update to 1.7.0.
  [inputs]: Add libjxl.
2026-10-23 03:37:45 +08:00
Hilton Chain 9c154fa85c rosenthal: ai-robots-txt: Update to 2.1.
* modules/rosenthal/packages/web.scm (ai-robots-txt): Update to 2.1.
2026-10-23 03:37:45 +08:00
Hilton Chain 279e3645b6 rosenthal: limine: Update to 12.9.4.
* modules/rosenthal/packages/bootloaders.scm (limine): Update to 12.9.4.
  [properties]: Include into the auto-update manifest.
2026-10-23 03:37:45 +08:00
Hilton Chain 19d981d97a rosenthal: systemd-stub: Update to 262.1.
* modules/rosenthal/packages/bootloaders.scm (systemd-stub): Update to 262.1.
2026-10-23 03:37:45 +08:00
Hilton Chain fb5e0fd076 rosenthal: ukify: Update to 262.1.
* modules/rosenthal/packages/bootloaders.scm (ukify): Update to 262.1.
2026-10-23 03:37:45 +08:00
Hilton Chain c3cb87ecb5 rosenthal: komga-bin: Update to 1.29.1.
* modules/rosenthal/packages/binaries.scm (komga-bin): Update to 1.29.1.
2026-10-23 03:37:45 +08:00
Hilton Chain e0333310c8 rosenthal: cloudflare-warp-bin: Update to 2026.8.2115.0.
* modules/rosenthal/packages/binaries.scm (cloudflare-warp-bin): Update to 2026.8.2115.0.
2026-10-23 03:37:45 +08:00
Hilton Chain db99800394 rosenthal: loki-bin: Update to 3.7.9.
* modules/rosenthal/packages/binaries.scm (loki-bin): Update to 3.7.9.
2026-10-23 03:37:44 +08:00
Hilton Chain 4f8e710735 rosenthal: wakatime-cli-bin: Update to 2.27.13.
* modules/rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 2.27.13.
2026-10-23 03:37:44 +08:00
Hilton Chain 42e0ad6d86 rosenthal: wakapi-bin: Update to 2.18.2.
* modules/rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.18.2.
2026-10-23 03:37:44 +08:00
Hilton Chain f5da8e8aeb rosenthal: %alloy-source-aarch64-linux: Update to 1.21.1.
* modules/rosenthal/packages/binaries.scm (%alloy-source-aarch64-linux): Update to 1.21.1.
2026-10-23 03:37:44 +08:00
Hilton Chain 30cb0fca4f rosenthal: %alloy-source-x86_64-linux: Update to 1.21.1.
* modules/rosenthal/packages/binaries.scm (%alloy-source-x86_64-linux): Update to 1.21.1.
2026-10-23 03:37:44 +08:00
Hilton Chain 0999318f8d rosenthal: prometheus-bin: Update to 3.15.1.
* modules/rosenthal/packages/binaries.scm (prometheus-bin): Update to 3.15.1.
2026-10-23 03:37:44 +08:00
Hilton Chain 3507deee77 rosenthal: grafana-bin: Update to 13.2.4.
* modules/rosenthal/packages/binaries.scm (grafana-bin): Update to 13.2.4.
2026-10-23 03:37:44 +08:00
Hilton Chain db46c04f3d rosenthal: mimir-bin: Update to 3.2.3.
* modules/rosenthal/packages/binaries.scm (mimir-bin): Update to 3.2.3.
2026-10-23 03:37:44 +08:00
Hilton Chain 2b03183286 rosenthal: bitwarden-icecat: Update to 2026.10.0.
* modules/rosenthal/packages/browser-extensions.scm (bitwarden): Update to 2026.10.0.
2026-10-23 03:37:43 +08:00
Hilton Chain 579db10847 rosenthal: ohmyech-icecat: Update to 1.5.
* modules/rosenthal/packages/browser-extensions.scm (ohmyech): Update to 1.5.
2026-10-23 03:37:43 +08:00
Hilton Chain 7912112268 rosenthal: dnsmasq-china-list: Update to 0.0.0-22.c79474a.
* modules/rosenthal/packages/dns.scm (dnsmasq-china-list): Update to 0.0.0-22.c79474a.
2026-10-23 03:37:43 +08:00
Hilton Chain be842ba63f rosenthal: emacs-reader: Update to 0.3.2-4.4fca3aa.
* modules/rosenthal/packages/emacs-xyz.scm (emacs-reader): Update to 0.3.2-4.4fca3aa.
2026-10-23 03:37:43 +08:00
Hilton Chain 2fb0028c81 rosenthal: emacs-kdl-mode: Update to 0.0.1-1.e966ed4.
* modules/rosenthal/packages/emacs-xyz.scm (emacs-kdl-mode): Update to 0.0.1-1.e966ed4.
2026-10-23 03:37:43 +08:00
Hilton Chain c27ac08668 rosenthal: emacs-majutsu/dolly: Update to 0.6.0-6.8fef3fe.
* modules/rosenthal/packages/emacs-xyz.scm (emacs-majutsu/dolly): Update to 0.6.0-6.8fef3fe.
2026-10-23 03:37:43 +08:00
Hilton Chain 4b892bd318 rosenthal: emacs-consult-ghostel: Update to 0.59.0.
* modules/rosenthal/packages/emacs-xyz.scm (emacs-consult-ghostel): Update to 0.59.0.
2026-10-23 03:37:43 +08:00
Hilton Chain 52f55af4e9 rosenthal: Remove emacs-flycheck-eglot.
* modules/rosenthal/packages/emacs-xyz.scm (emacs-flycheck-eglot): Delete variable.
2026-10-23 03:37:43 +08:00
Hilton Chain 9b9071c9e0 rosenthal: linux-cachyos: Exclude from the auto-update manifest. 2026-10-23 03:37:43 +08:00
Hilton Chain f6a6436ebc rosenthal: forgejo: Exclude from the auto-update manifest. 2026-10-23 03:37:41 +08:00
Hilton Chain a7073acb39 rosenthal: forgejo: Update to 16.0.6.
* modules/rosenthal/packages/web.scm
  (forgejo): Update to 16.0.6.
  Use package definition from the Guix PR.
* modules/rosenthal/services/web.scm
  (forgejo-activation): Simplify.
  (forgejo-shepherd-service): Add a forgejo-init shepherd service.
2026-10-20 14:22:20 +08:00
Hilton Chain 276eca71dd services: home-niri: Validate configuration file.
* modules/rosenthal/services/desktop.scm
  (home-niri-configuration) [niri]: New field.
  (home-niri-service-type): Extend home-profile-service-type with it.
  (validated-niri-config): New procedure.
  (%home-niri-xdg-config): Use it.
2026-10-20 14:22:18 +08:00
Hilton Chain e1b25f7d8d rosenthal: mirror-substitutes: Update to 0.0.3.
* modules/rosenthal/packages/package-management.scm (mirror-substitutes): Update to 0.0.3.
2026-10-18 20:01:00 +08:00
Hilton Chain 9afc4e56da rosenthal: Reorganize scripts.
* README.org (Content): Move to...
* etc/docs/index.org: ...this new file.
* pre-inst-env: Prepend etc/scripts to PATH.
* etc/scripts/index.scm: Rename to...
* etc/scripts/index: ...this.
* etc/committer.scm: Rename to...
* etc/scripts/committer: ...this.
2026-10-18 15:59:34 +08:00
Hilton Chain 27baf1ba57 services: noctalia: Use the Guix package.
* modules/rosenthal/home/services/desktop.scm (home-noctalia-configuration)
  [noctalia]: Defaults to the Guix package.
* modules/rosenthal/packages/wm.scm (wayland-protocols-1.48, noctalia)
  (noctalia-shell): Delete variables.
2026-10-18 15:59:31 +08:00
Hilton Chain fc235e2eb0 rosenthal: linux-cachyos-bore-zen4: Update to 7.2.11-1.
* modules/rosenthal/packages/linux.scm (linux-cachyos-bore-zen4): Update to 7.2.11-1.
2026-10-16 17:08:31 +08:00
Hilton Chain e076f5f3de rosenthal: linux-cachyos-lts-server: Default transparent hugepage to madvise.
https://github.com/CachyOS/linux-cachyos/commit/25e7915b522f072d014606954403755e5697d835
2026-10-16 17:08:31 +08:00
Hilton Chain 01d1c44615 build-system: go-vendored: Set file name for vendored Go dependencies. 2026-10-16 17:08:29 +08:00
Nikita Mitasov 8a41a4e33d rosenthal: prismlauncher/dolly: Add libxi input.
* modules/rosenthal/packages/games.scm (prismlauncher/dolly) [inputs]:
Add libxi.
[arguments] <#:phases>: Add libXi.so to the wrapper.

Signed-off-by: Hilton Chain <hako@ultrarare.space>
2026-10-16 01:54:48 +08:00
Hilton Chain 42e079f438 rosenthal: tuwunel-bin: Update to 1.9.4.
* modules/rosenthal/packages/binaries.scm (tuwunel-bin): Update to 1.9.4.
2026-10-16 01:54:46 +08:00
Hilton Chain 631adacf12 rosenthal: mautrix-telegram: Update to 0.2609.0.
* modules/rosenthal/packages/messaging.scm (mautrix-telegram): Update to 0.2609.0.
  [arguments] <#:go>: Use go-1.27.
  <#:vendor-hash>: Update.
2026-10-14 03:59:42 +08:00
Hilton Chain b98b1b1e9f rosenthal: caddy: Update to 2.11.7.
* modules/rosenthal/packages/web.scm (caddy): Update to 2.11.7.
  [arguments] <#:go>: Use go-1.27.
  <#:vendor-hash>: Update.
2026-10-14 03:59:42 +08:00
Hilton Chain 2e08e1a93e rosenthal: sing-box: Update to 1.14.3.
* modules/rosenthal/packages/networking.scm (sing-box): Update to 1.14.3.
  [arguments] <#:go>: Use go-1.27.
  <#:vendor-hash>: Update.
2026-10-14 03:59:42 +08:00
Hilton Chain 90537893e2 rosenthal: mihomo: Update to 1.19.32.
* modules/rosenthal/packages/networking.scm (mihomo): Update to 1.19.32.
  [arguments] <#:go>: Use go-1.27.
  <#:vendor-hash>: Update.
2026-10-14 03:59:41 +08:00
Hilton Chain 15e867800b rosenthal: tailscale: Update to 1.104.1.
* modules/rosenthal/packages/patches/tailscale-set-guix-system-path-for-ssh.patch:
  Update patch.
* modules/rosenthal/packages/networking.scm (tailscale): Update to 1.104.1.
  [arguments] <#:go>: Use go-1.27.
  <#:vendor-hash>: Update.
2026-10-14 03:59:41 +08:00
Hilton Chain 717eb109be rosenthal: cloudflared: Update to 2026.10.0.
* modules/rosenthal/packages/networking.scm (cloudflared): Update to 2026.10.0.
  [arguments] <#:go>: Use go-1.27.
  <#:vendor-hash>: Set.
2026-10-14 03:59:41 +08:00
Hilton Chain 58c47e9bfc rosenthal: emacs-reader: Update to 0.3.2-3.b8c8863.
* modules/rosenthal/packages/emacs-xyz.scm (emacs-reader): Update to 0.3.2-3.b8c8863.
2026-10-14 03:59:41 +08:00
Hilton Chain c62ff66702 rosenthal: prismlauncher/dolly: Update to 11.1.1.
* modules/rosenthal/packages/games.scm (prismlauncher/dolly): Update to 11.1.1.
2026-10-14 03:59:41 +08:00
Hilton Chain 98a49dcb06 rosenthal: noctalia: Update to 5.2.1.
* modules/rosenthal/packages/wm.scm (noctalia): Update to 5.2.1.
2026-10-14 03:59:41 +08:00
Hilton Chain 14ce4e3aba rosenthal: komga-bin: Update to 1.28.1.
* modules/rosenthal/packages/binaries.scm (komga-bin): Update to 1.28.1.
2026-10-14 03:59:41 +08:00
Hilton Chain 567a1e7a55 rosenthal: emacs-tramp-rpc: Update to 0.15.0.
* modules/rosenthal/packages/emacs-xyz.scm (emacs-tramp-rpc): Update to 0.15.0.
2026-10-14 03:59:41 +08:00
Hilton Chain f25d748dbd rosenthal: systemd-stub: Update to 262.
* modules/rosenthal/packages/bootloaders.scm (systemd-stub): Update to 262.
2026-10-14 03:59:40 +08:00
Hilton Chain 9f77f8a014 rosenthal: ukify: Update to 262.
* modules/rosenthal/packages/bootloaders.scm (ukify): Update to 262.
2026-10-14 03:59:40 +08:00
Hilton Chain 3e1ac671e3 rosenthal: cloudflare-warp-bin: Update to 2026.8.2100.0.
* modules/rosenthal/packages/binaries.scm (cloudflare-warp-bin): Update to 2026.8.2100.0.
2026-10-14 03:59:40 +08:00
Hilton Chain 8f5f47e0c3 rosenthal: emacs-consult-ghostel: Update to 0.57.0.
* modules/rosenthal/packages/emacs-xyz.scm (emacs-consult-ghostel): Update to 0.57.0.
2026-10-14 03:59:34 +08:00
Hilton Chain ee479dbfda rosenthal: loki-bin: Update to 3.7.8.
* modules/rosenthal/packages/binaries.scm (loki-bin): Update to 3.7.8.
2026-10-14 03:59:34 +08:00
Hilton Chain 200667cddc rosenthal: wakatime-cli-bin: Update to 2.26.15.
* modules/rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 2.26.15.
2026-10-14 03:59:34 +08:00
Hilton Chain c66f1a8c8d rosenthal: wakapi-bin: Update to 2.18.1.
* modules/rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.18.1.
2026-10-14 03:59:34 +08:00
Hilton Chain 1122c6fec9 rosenthal: ai-robots-txt: Update to 2.0.
* modules/rosenthal/packages/web.scm (ai-robots-txt): Update to 2.0.
2026-10-14 03:59:34 +08:00
Hilton Chain 755e5c109a rosenthal: %alloy-source-aarch64-linux: Update to 1.20.1.
* modules/rosenthal/packages/binaries.scm (%alloy-source-aarch64-linux): Update to 1.20.1.
2026-10-14 03:59:34 +08:00
Hilton Chain 6142ed7cd5 rosenthal: %alloy-source-x86_64-linux: Update to 1.20.1.
* modules/rosenthal/packages/binaries.scm (%alloy-source-x86_64-linux): Update to 1.20.1.
2026-10-14 03:59:34 +08:00
Hilton Chain a332d68283 rosenthal: navidrome-bin: Update to 0.64.2.
* modules/rosenthal/packages/binaries.scm (navidrome-bin): Update to 0.64.2.
2026-10-14 03:59:34 +08:00
Hilton Chain a3b53eb118 rosenthal: prometheus-bin: Update to 3.15.0.
* modules/rosenthal/packages/binaries.scm (prometheus-bin): Update to 3.15.0.
2026-10-14 03:59:33 +08:00
Hilton Chain 649be3f514 rosenthal: Remove cuirass/dolly.
* modules/rosenthal/packages/patches/cuirass-templates-add-more-forges.patch:
  Delete file
* modules/rosenthal/packages/ci.scm (cuirass/dolly): Delete variable.
2026-10-14 03:59:33 +08:00
Hilton Chain ccc53c9afc rosenthal: Remove guix/dolly.
* modules/rosenthal/packages/patches/guix-change-publish-cache-storage.patch:
  Delete file.
* modules/rosenthal/packages/package-management.scm (guix/dolly): Delete
  variable.
2026-10-14 03:59:33 +08:00
Hilton Chain 731b5877ff rosenthal: linux-cachyos: Refresh package location. 2026-10-11 02:58:34 +08:00
Hilton Chain c2897f17ad rosenthal: linux-cachyos: Remove builtin ZFS modules. 2026-10-11 01:45:06 +08:00
Hilton Chain 2dae5082ff utils: binary-package: Inherit location. 2026-10-11 01:45:00 +08:00
Hilton Chain 5119a0fbfd build-system: go-vendored: Simplify arguments handling. 2026-10-10 15:53:30 +08:00
Hilton Chain 9525c5b1c0 build-system: go-vendored: Reuse go-build-system code. 2026-10-10 11:29:55 +08:00
Hilton Chain bdde9175c6 etc: Update committer.scm. 2026-10-10 11:29:53 +08:00
Hilton Chain e4aff75551 README: Content: Add services and use tables. 2026-10-09 14:50:51 +08:00
Hilton Chain 0d00baa9e1 README: Add packages list.
* etc/scripts/package-index.scm: New file.
* README.org (Packages): Use its output.
2026-10-09 03:06:48 +08:00
Hilton Chain 34502202bf rosenthal: linux-cachyos: Really make substitutable.
Follow-up to 625844a768b0aa4b3739d2c88c057dacfebcf314.
2026-10-05 11:54:18 +08:00
Hilton Chain 641f1fbd71 rosenthal: linux-cachyos: Make substitutable.
* modules/rosenthal/packages/linux.scm (linux-cachyos-lts-server)
(linux-cachyos-bore-zen4): Make substitutable.
2026-10-05 11:40:16 +08:00
Hilton Chain 1398722e04 rosenthal: linux-cachyos-bore-zen4: Update to 7.2.9-2.
* modules/rosenthal/packages/linux.scm (linux-cachyos-bore-zen4): Update to
7.2.9-2.
2026-10-04 23:36:29 +08:00
Hilton Chain 74b0cd7410 rosenthal: linux-cachyos-lts-server: Update to 6.18.55-1.
* modules/rosenthal/packages/linux.scm (linux-cachyos-lts-server): Update to
6.18.55-1.
2026-10-04 23:36:29 +08:00
Hilton Chain ed54329e1f rosenthal: linux-cachyos: Build ZFS modules into the kernels.
* modules/rosenthal/packages/linux.scm (linux-cachyos-lts-server)
(linux-cachyos-bore-zen4): Use linux-with-zfs.
2026-10-04 23:36:29 +08:00
Hilton Chain 14bde08c8b rosenthal: linux: Add linux-with-zfs.
* modules/rosenthal/packages/linux.scm (linux-with-zfs): New procedure.
2026-10-04 23:36:26 +08:00
Hilton Chain 1f35f0e393 rosenthal: noctalia: Update to 5.2.0. 2026-09-29 11:43:40 +08:00
Hilton Chain 87bfe33314 rosenthal: noctalia-greeter: Update to 1.6.0. 2026-09-29 11:43:40 +08:00
Hilton Chain 5f312b336d services: messaging: Add (rosenthal utils file) import. 2026-09-29 11:43:32 +08:00
Hilton Chain 805ea83faf rosenthal: Add packages and variables from testament.
* modules/rosenthal/packages/linux.scm (default-initrd-configs)
(cachyos-configs): New procedures.
(linux-cachyos-lts-server, linux-cachyos-bore-zen4): New variables.
* modules/rosenthal/utils/others.scm (%rosenthal-guix-key-dorphine)
(%rosenthal-guix-key-nuporta, %rosenthal-guix-key-bocis)
(%rosenthal-guix-key-ignamma, %rosenthal-ssh-key-hako)
(%rosenthal-ssh-key-hako-deploy, %rosenthal-ssh-key-jonathan)
(%rosenthal-ssh-key-podiki, %rosenthal-network-manager-ipv6-privacy)
(%rosenthal-network-manager-random-mac-address, %rosenthal-cli-packages): New
variables.
2026-09-28 20:03:46 +08:00
Hilton Chain 8aae7d26dd rosenthal: guix-for-mirror-substitutes: Update to 1.5.0-7.5ceffb6. 2026-09-28 20:03:44 +08:00
Hilton Chain 8bebafaacd utils: contract/combinators: ->/c: Use procedure-minimum-arity. 2026-09-19 16:01:51 +08:00
39 changed files with 1321 additions and 1160 deletions

No files matched your search

+4 -3
View File
@@ -10,8 +10,8 @@ Feel free to upstream things from this channel if you find them useful and
suitable. I can help with that but don't have the energy to finish all the suitable. I can help with that but don't have the energy to finish all the
process by myself. process by myself.
NOTE: everything in this channel is subject to change and may be deleted *at NOTE: everything in this channel is subject to change and may be deleted *at any
any time*, please [[https://codeberg.org/hako/Rosenthal/issues][report an issue]] if you are affected. time*, please [[https://codeberg.org/hako/Rosenthal/issues][report an issue]] if you are affected.
Channel specification: Channel specification:
#+begin_src scheme #+begin_src scheme
@@ -26,7 +26,8 @@ Channel specification:
"13E7 6CD6 E649 C28C 3385 4DF5 5E5A A665 6149 17F7")))) "13E7 6CD6 E649 C28C 3385 4DF5 5E5A A665 6149 17F7"))))
#+end_src #+end_src
You can use [[https://toys.whereis.social/?search=&channel=rosenthal][toys.whereis.social]] or [[https://search.guix.moe/?search=&channel=rosenthal][search.guix.moe]] to search packages, services Available packages and services are listed in [[file:etc/docs/index.org][index.org]] (outputed by the [[file:etc/scripts/index][index]]
script). You can also use [[https://toys.whereis.social/?search=&channel=rosenthal][toys.whereis.social]] or [[https://search.guix.moe/?search=&channel=rosenthal][search.guix.moe]] to search them
and public symbols from Rosenthal and other Guix channels. and public symbols from Rosenthal and other Guix channels.
[[https://guix.gnu.org/manual/devel/en/html_node/Substitutes.html][Substitutes]] (pre-built package binaries) for this channel are available via [[https://guix.moe/][Guix [[https://guix.gnu.org/manual/devel/en/html_node/Substitutes.html][Substitutes]] (pre-built package binaries) for this channel are available via [[https://guix.moe/][Guix
+136
View File
@@ -0,0 +1,136 @@
*** Packages
| PACKAGE | SYNOPSIS | LOCATION |
|-+-+-|
|[[https://github.com/ai-robots-txt/ai.robots.txt][=ai-robots-txt=]]@2.1|List of AI agents and robots to block|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/web.scm#L37][web.scm]]|
|[[https://grafana.com/oss/alloy-opentelemetry-collector/][=alloy-bin=]]@1.21.2|OpenTelemetry Collector distribution with programmable pipelines|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/binaries.scm#L609][binaries.scm]]|
|[[https://github.com/anthonyhab/bb-auth][=bb-auth=]]@0.2.0|Unified polkit, keyring, and pinentry authentication daemon|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/authentication.scm#L22][authentication.scm]]|
|[[https://bitwarden.com/][=bitwarden-icecat=]]@2026.10.0|Bitwarden client browser extension|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/browser-extensions.scm#L48][browser-extensions.scm]]|
|[[https://www.busybox.net][=busybox-static=]]@1.37.0|Many common UNIX utilities in a single executable|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/busybox.scm#L14][busybox.scm]]|
|[[https://caddyserver.com/][=caddy=]]@2.11.7|Extensible HTTP web server with automatic HTTPS|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/web.scm#L70][web.scm]]|
|[[https://git.guix.moe/hako/caddy][=caddy-dolly=]]@2026.10.23|Extensible HTTP web server with automatic HTTPS|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/web.scm#L139][web.scm]]|
|[[https://1.1.1.1/][=cloudflare-warp-bin=]]@2026.8.2115.0|Cloudflare WARP client|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/binaries.scm#L42][binaries.scm]]|
|[[https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/][=cloudflared=]]@2026.10.3|Cloudflare Tunnel client|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/networking.scm#L25][networking.scm]]|
|[[https://davmac.org/projects/dinit/][=dinit=]]@0.22.1|Service manager with dependency management|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/admin.scm#L25][admin.scm]]|
|[[https://github.com/felixonmars/dnsmasq-china-list][=dnsmasq-china-list=]]@0.0.0-22.c79474a|Chinese-specific DNS server configurations|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/dns.scm#L18][dns.scm]]|
|[[https://matt.ucc.asn.au/dropbear/dropbear.html][=dropbear-static=]]@2025.89|Small SSH server and client|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/ssh.scm#L16][ssh.scm]]|
|[[https://github.com/Schnouki/caddyfile-mode][=emacs-caddyfile-mode=]]@0.2-0.fc41148|Emacs major mode for editing Caddy configuration files|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/emacs-xyz.scm#L25][emacs-xyz.scm]]|
|[[https://github.com/dakra/ghostel][=emacs-consult-ghostel=]]@0.59.0|Consult integration for ghostel|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/emacs-xyz.scm#L51][emacs-xyz.scm]]|
|[[https://codeberg.org/akib/emacs-eat][=emacs-eat-dolly=]]@0.9.4|Terminal emulator in Emacs|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/emacs-xyz.scm#L77][emacs-xyz.scm]]|
|[[https://github.com/astoff/isearch-mb][=emacs-isearch-mb=]]@0.8|Control `isearch' from the minibuffer|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/emacs-xyz.scm#L95][emacs-xyz.scm]]|
|[[https://github.com/taquangtrung/emacs-kdl-mode][=emacs-kdl-mode=]]@0.0.1-1.e966ed4|Emacs major mode for editing files in the KDL document language|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/emacs-xyz.scm#L120][emacs-xyz.scm]]|
|[[https://github.com/dandavison/magit-delta][=emacs-magit-delta-dolly=]]@0.1-0.5fc7dbd|Integration of `delta' with `emacs-magit'|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/emacs-xyz.scm#L141][emacs-xyz.scm]]|
|[[https://github.com/0WD0/majutsu][=emacs-majutsu-dolly=]]@0.6.0-7.19856a9|Emacs interface for Jujutsu version control system|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/emacs-xyz.scm#L156][emacs-xyz.scm]]|
|[[https://github.com/xuchunyang/msgpack.el][=emacs-msgpack=]]@0.1.1-0.5353a7b|Read and write MessagePack object in Emacs|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/emacs-xyz.scm#L180][emacs-xyz.scm]]|
|[[https://git.thanosapollo.org/pcmpl-tailscale][=emacs-pcmpl-tailscale=]]@0.0.1-0.acd6bce|Enhanced shell completions for tailscale|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/emacs-xyz.scm#L206][emacs-xyz.scm]]|
|[[https://codeberg.org/divyaranjan/emacs-reader][=emacs-reader=]]@0.3.2-4.4fca3aa|Emacs document reader|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/emacs-xyz.scm#L231][emacs-xyz.scm]]|
|[[https://github.com/ArthurHeymans/emacs-tramp-rpc][=emacs-tramp-rpc=]]@0.15.0|TRAMP backend using RPC|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/emacs-xyz.scm#L264][emacs-xyz.scm]]|
|[[https://wakatime.com/emacs][=emacs-wakatime-mode=]]@1.0.2-60.1c5b225|Automatic time tracking extension for Emacs using WakaTime|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/emacs-xyz.scm#L298][emacs-xyz.scm]]|
|[[https://forgejo.org/][=forgejo=]]@16.0.6|Self-hosted, lightweight software forge|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/web.scm#L161][web.scm]]|
|[[https://grafana.com/][=grafana-bin=]]@13.2.4|Platform for monitoring and observability|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/binaries.scm#L416][binaries.scm]]|
|[[https://github.com/hylophile/guile-toml][=guile-toml=]]@1.0|TOML module for Guile Scheme|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/guile-xyz.scm#L19][guile-xyz.scm]]|
|[[https://github.com/hifi/heisenbridge][=heisenbridge=]]@1.15.4|Bouncer-style Matrix IRC bridge|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/messaging.scm#L33][messaging.scm]]|
|[[https://komga.org/][=komga-bin=]]@1.29.1|Media server for comics/mangas/BDs/magazines/eBooks|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/binaries.scm#L190][binaries.scm]]|
|[[https://sr.ht/~kennylevinsen/seatd][=libseat-sans-logind=]]@0.9.3|Seat management library|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/admin.scm#L62][admin.scm]]|
|[[https://www.freedesktop.org/wiki/Software/vaapi/][=libva-nox=]]@2.22.0|Video acceleration library|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/video.scm#L14][video.scm]]|
|[[https://github.com/Limine-Bootloader/Limine][=limine=]]@12.9.4|Multiprotocol bootloader and boot manager|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/bootloaders.scm#L40][bootloaders.scm]]|
|[[https://cachyos.org/][=linux-cachyos-bore-zen4=]]@7.2.11-1|CachyOS Linux kernel (bore + znver4)|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/linux.scm#L289][linux.scm]]|
|[[https://cachyos.org/][=linux-cachyos-lts-server=]]@6.18.55-1|CachyOS Linux kernel (lts + server)|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/linux.scm#L247][linux.scm]]|
|[[https://grafana.com/oss/loki/][=loki-bin=]]@3.7.9|Log aggregation system|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/binaries.scm#L545][binaries.scm]]|
|[[https://github.com/sot-tech/LottieConverter][=lottie-converter=]]@0.2-0.3ad34af|Lottie animation converter|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/animation.scm#L22][animation.scm]]|
|[[https://github.com/mautrix/telegram][=mautrix-telegram=]]@0.2610.0|Matrix-Telegram hybrid puppeting/relaybot bridge|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/messaging.scm#L66][messaging.scm]]|
|[[https://wiki.metacubex.one/][=mihomo=]]@1.19.33|Rule-based proxy|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/networking.scm#L70][networking.scm]]|
|[[https://grafana.com/oss/mimir/][=mimir-bin=]]@3.2.3|Scalable long-term storage for Prometheus|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/binaries.scm#L505][binaries.scm]]|
|[[https://github.com/Sevichecc/miniflux-injector][=miniflux-injector-icecat=]]@2.3.3|Injects Miniflux search results into search page|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/browser-extensions.scm#L97][browser-extensions.scm]]|
|[[https://codeberg.org/hako/mirror-substitutes][=mirror-substitutes=]]@0.0.3|Mirror Guix substitutes|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/package-management.scm#L39][package-management.scm]]|
|[[https://www.navidrome.org/][=navidrome-bin=]]@0.64.2|Web-based music collection server and streamer|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/binaries.scm#L238][binaries.scm]]|
|[[https://noctalia.dev/][=noctalia-greeter=]]@1.7.0|Login greeter for greetd|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/wm.scm#L40][wm.scm]]|
|[[https://github.com/27justin/ohmyech][=ohmyech-icecat=]]@1.5|Visual indicator for Encrpted Client Hello|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/browser-extensions.scm#L147][browser-extensions.scm]]|
|[[https://github.com/ifreund/dumb_runtime_dir][=pam-dumb-runtime-dir=]]@1.0.4|Create `XDG_RUNTIME_DIR' on login and never remove it|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/admin.scm#L74][admin.scm]]|
|[[https://prismlauncher.org/][=prismlauncher-dolly=]]@11.1.1|Free, open source launcher for Minecraft|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/games.scm#L45][games.scm]]|
|[[https://prometheus.io/][=prometheus-bin=]]@3.15.1|Monitoring system and time series database|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/binaries.scm#L453][binaries.scm]]|
|[[https://pypi.org/project/coherent.licensed/][=python-coherent-licensed=]]@0.5.2|License management tooling|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/python-xyz.scm#L31][python-xyz.scm]]|
|[[https://github.com/cher-nov/cryptg][=python-cryptg=]]@0.5.2|Cryptographic utilities for Telegram|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/python-xyz.scm#L53][python-xyz.scm]]|
|[[https://github.com/jaraco/irc][=python-irc=]]@20.3.1|Python Internet Relay Chat protocol library|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/python-xyz.scm#L109][python-xyz.scm]]|
|[[https://github.com/jaraco/jaraco.logging][=python-jaraco-logging=]]@3.4.0|Python logging facility|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/python-xyz.scm#L144][python-xyz.scm]]|
|[[https://github.com/jaraco/jaraco.stream][=python-jaraco-stream=]]@3.0.4|Routines for dealing with data streams|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/python-xyz.scm#L170][python-xyz.scm]]|
|[[https://github.com/mautrix/python][=python-mautrix=]]@0.20.8|Python 3 asyncio Matrix framework|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/python-xyz.scm#L195][python-xyz.scm]]|
|[[https://github.com/tulir/Telethon][=python-tulir-telethon=]]@1.99.0a6|Python 3 MTProto API Telegram client library|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/python-xyz.scm#L228][python-xyz.scm]]|
|[[https://sr.ht/~kennylevinsen/seatd][=seatd-sans-logind=]]@0.9.3|Seat management daemon|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/admin.scm#L111][admin.scm]]|
|[[https://www.ihcblog.com/a-better-tls-obfs-proxy/][=shadow-tls-bin=]]@0.2.25|Proxy to expose real tls handshake to the firewall|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/binaries.scm#L288][binaries.scm]]|
|[[https://sing-box.sagernet.org/][=sing-box=]]@1.14.3|Universal proxy platform|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/networking.scm#L118][networking.scm]]|
|[[https://github.com/zenhack/socks2http][=socks2http=]]@0.0.0-20160712034938-bafa2cde8eb4|SOCKS5 to HTTP proxy|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/networking.scm#L190][networking.scm]]|
|[[https://tangled.org/oppi.li/stinkpot][=stinkpot=]]@0.1.0|Search shell history|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/shellutils.scm#L18][shellutils.scm]]|
|[[https://systemd.io/][=systemd-stub=]]@262.1|Unified kernel image UEFI stub|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/bootloaders.scm#L103][bootloaders.scm]]|
|[[https://tailscale.com/][=tailscale=]]@1.104.2|Mesh VPN service utilizing the WireGuard protocol and 2FA|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/networking.scm#L217][networking.scm]]|
|[[https://matrix-construct.github.io/tuwunel/][=tuwunel-bin=]]@1.9.4|Matrix homeserver|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/binaries.scm#L131][binaries.scm]]|
|[[https://systemd.io][=ukify=]]@262.1|Unified kernel image UEFI tool|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/bootloaders.scm#L146][bootloaders.scm]]|
|[[https://wakapi.dev/][=wakapi-bin=]]@2.18.2|WakaTime-compatible backend|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/binaries.scm#L318][binaries.scm]]|
|[[https://wakatime.com/plugins][=wakatime-cli-bin=]]@2.27.13|Command line interface to WakaTime|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/packages/binaries.scm#L366][binaries.scm]]|
*** Services
| SERVICE | DESCRIPTION | LOCATION |
|-+-+-|
|=alloy=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/monitoring.scm#L82][monitoring.scm]]|
|=btrbk=|Configure and run btrbk hourly.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/file-systems.scm#L53][file-systems.scm]]|
|=caddy=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/web.scm#L160][web.scm]]|
|=clash=|Run Clash.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/child-error.scm#L121][child-error.scm]]|
|=cloudflare-tunnel=|Run cloudflared, the Cloudflare Tunnel daemon.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/child-error.scm#L219][child-error.scm]]|
|=cloudflare-warp=|Run warp-svc, the Cloudflare Warp daemon.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/child-error.scm#L255][child-error.scm]]|
|=cuirass=|Run the Cuirass continuous integration service.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/cuirass.scm#L68][cuirass.scm]]|
|=cuirass-worker-container=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/cuirass.scm#L208][cuirass.scm]]|
|=docker-mailserver=|Run Docker Mailserver.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/mail.scm#L77][mail.scm]]|
|=dumb-runtime-dir=|Create `XDG_RUNTIME_DIR' on login and never remove it.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/file-systems.scm#L94][file-systems.scm]]|
|=forgejo=|Run Forgejo.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/web.scm#L302][web.scm]]|
|=gamemode=|Set up Guix System environment for gamemode.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/games.scm#L51][games.scm]]|
|=grafana=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/monitoring.scm#L180][monitoring.scm]]|
|=heisenbridge=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/messaging.scm#L95][messaging.scm]]|
|=iocaine=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/web.scm#L408][web.scm]]|
|=jellyfin=|Run the Jellyfin media system.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/web.scm#L544][web.scm]]|
|=jellyfin-oci=|Run Jellyfin, a media system.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/web.scm#L634][web.scm]]|
|=komga=|Run Komga.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/web.scm#L706][web.scm]]|
|=loki=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/monitoring.scm#L269][monitoring.scm]]|
|=mautrix-telegram=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/messaging.scm#L181][messaging.scm]]|
|=mimir=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/monitoring.scm#L356][monitoring.scm]]|
|=misskey=|Run Misskey, an interplanetary microblogging platform.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/web.scm#L798][web.scm]]|
|=navidrome=|Run Navidrome.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/web.scm#L888][web.scm]]|
|=network-online=|Wait for the network to come up.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/networking.scm#L72][networking.scm]]|
|=nix-search-paths=|Set up search paths for `with-nix-profile'.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/nix.scm#L59][nix.scm]]|
|=noctalia-greeter=|Set up environment for `noctalia-greeter-session'.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/base.scm#L76][base.scm]]|
|=prometheus=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/monitoring.scm#L447][monitoring.scm]]|
|=qbittorrent=|Run qBittorrent daemon.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/bittorrent.scm#L120][bittorrent.scm]]|
|=shadow-tls=|Run shadow-tls.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/child-error.scm#L451][child-error.scm]]|
|=sing-box=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/networking.scm#L176][networking.scm]]|
|=smartdns=|Run Smartdns daemon.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/dns.scm#L44][dns.scm]]|
|=tailscaled=|Run tailscaled.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/networking.scm#L249][networking.scm]]|
|=tuwunel=|Run Tuwunel.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/web.scm#L975][web.scm]]|
|=vaultwarden=|Run Vaultwarden, a Bitwarden compatible server.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/web.scm#L1114][web.scm]]|
|=zfs=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/file-systems.scm#L187][file-systems.scm]]|
|=home-atuin=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/shellutils.scm#L68][shellutils.scm]]|
|=home-bb-auth=|Run `bb-auth' daemon.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/desktop.scm#L423][desktop.scm]]|
|=home-blueman-applet=|Run blueman applet, a tray applet for managing bluetooth.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/desktop.scm#L122][desktop.scm]]|
|=home-direnv=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/shellutils.scm#L105][shellutils.scm]]|
|=home-emacs=|Install Emacs into home profile and run its daemon.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/home/services/emacs.scm#L142][emacs.scm]]|
|=home-fcitx5=|Run fcitx5, an input method framework.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/desktop.scm#L246][desktop.scm]]|
|=home-goimapnotify=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/mail.scm#L129][mail.scm]]|
|=home-graphical-session=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/home/services/desktop.scm#L165][desktop.scm]]|
|=home-gtk2=|Set up GTK2 settings in `~/.config/gtk-2.0/gtkrc'|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/home/services/gtk.scm#L53][gtk.scm]]|
|=home-gtk3=|Set up GTK3 settings in `~/.config/gtk-3.0/settings.ini'|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/home/services/gtk.scm#L74][gtk.scm]]|
|=home-gtk4=|Set up GTK4 settings in `~/.config/gtk-4.0/settings.ini'|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/home/services/gtk.scm#L84][gtk.scm]]|
|=home-keyboard=|Set layouts by configuring XKB_* environment variables. Service accepts an instance of `keyboard-layout' from `(gnu system keyboard)'.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/keyboard.scm#L21][keyboard.scm]]|
|=home-mako=|Run mako, a notification daemon.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/desktop.scm#L302][desktop.scm]]|
|=home-network-manager-applet=|Run nm-applet, a tray applet for managing networks.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/desktop.scm#L341][desktop.scm]]|
|=home-network-online=|Wait for the network to come up.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/networking.scm#L81][networking.scm]]|
|=home-niri=|Set up configuration file for niri, a scrollable-tiling Wayland compositor.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/desktop.scm#L381][desktop.scm]]|
|=home-nix-search-paths=|Set up search paths for `with-nix-profile'.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/nix.scm#L74][nix.scm]]|
|=home-noctalia=|Run Noctalia, a lightweight Wayland shell and bar.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/home/services/desktop.scm#L219][desktop.scm]]|
|=home-polkit-gnome=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/desktop.scm#L450][desktop.scm]]|
|=home-qbittorrent=|Run qBittorrent daemon.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/bittorrent.scm#L158][bittorrent.scm]]|
|=home-rofi=|Set up configuration file for rofi, an application launcher.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/desktop.scm#L476][desktop.scm]]|
|=home-shadow-tls=|Run shadow-tls.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/child-error.scm#L460][child-error.scm]]|
|=home-socks2http=|Run socks2http.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/child-error.scm#L495][child-error.scm]]|
|=home-stinkpot=|Set up `stinkpot' for Fish shell.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/shellutils.scm#L143][shellutils.scm]]|
|=home-swaybg=|Run swaybg, a screen wallpaper utility for Wayland compositors.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/desktop.scm#L516][desktop.scm]]|
|=home-theme=|Set up desktop themes.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/desktop.scm#L615][desktop.scm]]|
|=home-wakapi=|Run Wakapi, a self-hosted WakaTime-compatible backend.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/child-error.scm#L298][child-error.scm]]|
|=home-waybar=|Run waybar, a status bar for Wayland compositors.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/desktop.scm#L680][desktop.scm]]|
|=home-writable-files-manager=|Provide an `update-writable-files' script, which copies files to configuration files, makes them writable and creates symlinks to directories on every activation. If an existing file would be overwritten, backs up that file first.|[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/home/services/writable-files-manager.scm#L264][writable-files-manager.scm]]|
|=home-zoxide=| |[[https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/rosenthal/services/shellutils.scm#L177][shellutils.scm]]|
+61
View File
@@ -0,0 +1,61 @@
#!/bin/sh
# -*- mode: scheme; -*-
exec guix repl -- "$0" "$@"
!#
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2025-2026 Hilton Chain <hako@ultrarare.space>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
;;;
;;; Usage: cleanup-crates.scm [FILE] ...
;;;
(use-modules (ice-9 match)
(ice-9 regex)
(srfi srfi-26)
(system base compile)
(guix ui)
(guix utils)
(guix scripts shell))
(define (cleanup-crates file)
(define %unused
(let ((warnings (open-output-string)))
(parameterize ((current-warning-port warnings))
(compile-file file
#:optimization-level 0
#:warning-level 0
#:opts '(#:warnings (unused-toplevel))))
(map (cut match:substring <> 1)
(list-matches "`(rust-[^']*)'" (get-output-string warnings)))))
(info (G_ "removing ~a unused definitions~%") (length %unused))
(for-each (lambda (name)
(info (G_ "removing '~a'...~%") name)
(and=> (find-definition-location file (string->symbol name) #:define-prefix 'define)
delete-expression))
%unused)
(info (G_ "collapsing newlines~%"))
(guix-shell "sed" "--" "sed" "--in-place" ":a;N;$!ba;s/\\n\\n\\+/\\n\\n/g" file))
(match (program-arguments)
((_ files ..1)
(for-each cleanup-crates files))
(_
(cleanup-crates "modules/rosenthal/packages/rust-crates.scm")))
+33 -5
View File
@@ -1,11 +1,12 @@
#!/usr/bin/env -S guix repl #!/bin/sh
# -*- mode: scheme; -*-
exec guix repl -- "$0" "$@"
!# !#
;;; SPDX-License-Identifier: GPL-3.0-or-later ;;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Copyright © 2020, 2021, 2022, 2023 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2020, 2021, 2022, 2023 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev> ;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz> ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
;;; Copyright © 2022 Maxim Cournoyer <maxim@guixotic.coop> ;;; Copyright © 2022, 2026 Maxim Cournoyer <maxim@guixotic.coop>
;;; Commentary: ;;; Commentary:
@@ -25,7 +26,9 @@
(ice-9 rdelim) (ice-9 rdelim)
(ice-9 regex) (ice-9 regex)
(ice-9 textual-ports) (ice-9 textual-ports)
(guix gexp)) (guix gexp)
(guix modules)
(guix packages))
(define* (break-string str #:optional (max-line-length 70)) (define* (break-string str #:optional (max-line-length 70))
"Break the string STR into lines that are no longer than MAX-LINE-LENGTH. "Break the string STR into lines that are no longer than MAX-LINE-LENGTH.
@@ -380,6 +383,30 @@ modifying."
(cons* new (old-sexp (first hunks)) hunks))) (cons* new (old-sexp (first hunks)) hunks)))
(group-hunks-by-sexp hunks))) (group-hunks-by-sexp hunks)))
(define (new+old+hunks->package new+old+hunks)
"Return the package object whose source is referenced in a new+old+hunks
tuple, which describes modifications to the package in a tuple containing the
new sexp, the old sexp as well as a tail of <hunk> objects."
(match new+old+hunks
((new-sexp old-sexp . hunks)
(let* ((hunk-file-name (hunk-file-name (first hunks)))
(variable-name (second new-sexp))
(module-name
(match (file-name->module-name hunk-file-name)
(('modules 'rosenthal symbols ...)
(cons 'rosenthal symbols))
(x x))))
(module-ref (resolve-module module-name) variable-name)))))
(define (sort-new+old+hunks-by-closure new+old+hunks)
"Sort new+old+hunks by their package closure size."
(sort new+old+hunks
(match-lambda*
(((= new+old+hunks->package x-package)
(= new+old+hunks->package y-package))
(< (length (package-closure (list x-package)))
(length (package-closure (list y-package))))))))
(define %delay 1000) (define %delay 1000)
(define (main . args) (define (main . args)
@@ -456,6 +483,7 @@ modifying."
(usleep %delay) (usleep %delay)
(unless (eqv? 0 (status:exit-val (close-pipe port))) (unless (eqv? 0 (status:exit-val (close-pipe port)))
(error "Cannot commit"))))))) (error "Cannot commit")))))))
(sort-new+old+hunks-by-closure
(new+old+hunks (match definitions (new+old+hunks (match definitions
('() changes) ;reuse ('() changes) ;reuse
(_ (_
@@ -463,6 +491,6 @@ modifying."
;; insertions lead to offsets. ;; insertions lead to offsets.
(let-values (((definitions changes) (let-values (((definitions changes)
(partition hunk-type (diff-info)))) (partition hunk-type (diff-info))))
changes))))))))) changes))))))))))
(apply main (cdr (command-line))) (apply main (cdr (command-line)))
+101
View File
@@ -0,0 +1,101 @@
#!/bin/sh
# -*- mode: scheme; -*-
exec guix repl -- "$0" "$@"
!#
;;; SPDX-License-Identifier: CC0-1.0
;;; Copyright © 2025-2026 Hilton Chain <hako@ultrarare.space>
(use-modules (ice-9 match)
(ice-9 string-fun)
(srfi srfi-1)
(srfi srfi-71)
(guix diagnostics)
(guix discovery)
(guix packages)
(guix profiles)
(guix ui)
(rosenthal utils packages)
(rosenthal utils services)
(gnu services))
(define (location->org-url loc)
(match loc
(#f "<unknown location>")
(($ <location> file line column)
(format #f "[[~a][~a]]"
(format #f "https://codeberg.org/hako/Rosenthal/src/branch/trunk/modules/~a#L~a"
file
line)
(basename file)))))
(define (replace-newlines str)
(define str*
(string-replace-substring
(string-trim-right str #\newline)
"\n"
" "))
(if (string-null? str*)
" "
str*))
(format #t "\
*** Packages
| PACKAGE | SYNOPSIS | LOCATION |
|-+-+-|
")
(define (sort-packages packages)
(stable-sort
packages
(lambda (a b)
(string< (package-name a)
(package-name b)))))
(for-each
(lambda (p)
(format #t "|[[~a][=~a=]]@~a|~a|~a|~%"
(package-home-page p)
(package-name p)
(package-version p)
(replace-newlines (package-synopsis-string p))
(and=> (package-location p) location->org-url)))
(sort-packages
(filter (negate hidden-package?)
(all-rosenthal-packages))))
(format #t "\
*** Services
| SERVICE | DESCRIPTION | LOCATION |
|-+-+-|
")
;; Copied from (guix scripts system search).
(define service-type-name*
(compose symbol->string service-type-name))
(define (service-type-description-string type)
"Return the rendered and localised description of TYPE, a service type."
(and=> (service-type-description type)
texi->plain-text))
(define (sort-services services)
(stable-sort
services
(lambda (a b)
(string< (service-type-name* a)
(service-type-name* b)))))
(for-each
(lambda (s)
(format #t "|=~a=|~a|~a|~%"
(service-type-name* s)
(replace-newlines (service-type-description-string s))
(and=> (service-type-location s) location->org-url)))
(let ((home-services
services
(partition (lambda (s)
(string-prefix? "home-" (service-type-name* s)))
(all-rosenthal-services))))
(append
(sort-services services)
(sort-services home-services))))
+36 -258
View File
@@ -1,67 +1,18 @@
;;; SPDX-License-Identifier: GPL-3.0-or-later ;;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Copyright © 2016 Petter <petter@mykolab.ch>
;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;; Copyright © 2021-2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2021, 2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2024 Christina O'Donnell <cdo@mutix.org>
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2026 Hilton Chain <hako@ultrarare.space> ;;; Copyright © 2026 Hilton Chain <hako@ultrarare.space>
(define-module (rosenthal build-system go-vendored) (define-module (rosenthal build-system go-vendored)
#:use-module (ice-9 match)
#:use-module (guix packages)
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (guix gexp) #:use-module (rosenthal utils download)
#:use-module (guix store)
#:use-module (guix monads)
#:use-module (guix search-paths)
#:use-module (guix build-system) #:use-module (guix build-system)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix packages) #:use-module (guix build-system go)
#:use-module (rosenthal utils download)
#:use-module (ice-9 match)
#:use-module (ice-9 regex)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-34)
#:use-module (srfi srfi-35)
#:export (%default-go-vendored-imported-modules #:export (%default-go-vendored-imported-modules
%default-go-vendored-modules %default-go-vendored-modules
go-vendored-build-system)) go-vendored-build-system))
;; Commentary:
;;
;; Standard build procedure for packages using the Go build system. It is
;; implemented as an extension of 'gnu-build-system'.
;;
;; Code:
(define (go-target target)
;; Parse the nix-system equivalent of the target and set the
;; target for compilation accordingly.
(match (string-split (gnu-triplet->nix-system target) #\-)
((arch os)
(list (match arch
("aarch64" "arm64")
("armhf" "arm")
("powerpc64le" "ppc64le")
("powerpc64" "ppc64")
("i686" "386")
("x86_64" "amd64")
("mips64el" "mips64le")
("loongarch64" "loong64")
(_ arch))
(match os
((or "mingw32" "cygwin") "windows")
("gnu" "hurd")
(_ os))))
(_
(raise
(condition
(&unsupported-cross-compilation-target-error
(build-system go-vendored-build-system)
(target target)))))))
(define %default-go-vendored-imported-modules (define %default-go-vendored-imported-modules
;; Build-side modules imported and used by default. ;; Build-side modules imported and used by default.
`(,@%default-gnu-imported-modules `(,@%default-gnu-imported-modules
@@ -74,223 +25,50 @@
(guix build utils) (guix build utils)
(rosenthal build go-vendored-build-system))) (rosenthal build go-vendored-build-system)))
(define (default-go) (define* (lower name #:key source go vendor-hash #:allow-other-keys #:rest rest)
(@* (gnu packages golang) go))
(define (default-gccgo)
(@* (gnu packages gcc) gccgo-15))
(define (make-go-std)
(@* (gnu packages golang) make-go-std))
(define* (lower name
#:key source inputs native-inputs outputs system target
(go (if (supported-package? (default-go))
(default-go)
(default-gccgo)))
vendor-hash
#:allow-other-keys
#:rest arguments)
"Return a bag for NAME."
(define private-keywords (define private-keywords
'(#:target #:go #:vendor-hash #:inputs #:native-inputs)) '(#:vendor-hash))
(define inputs-with-cache (define go-lower
;; XXX: Avoid a circular dependency. This should be rewritten with (build-system-lower go-build-system))
;; 'package-mapping' or similar.
(let ((go-std-name (string-append (package-name go) "-std"))) (define go-bag
(if (string-prefix? go-std-name name) (apply go-lower name
inputs #:source source
(cons `(,go-std-name ,((make-go-std) go)) inputs)))) #:go go
rest))
(bag (bag
(name name) (inherit go-bag)
(system system) (build-inputs
(target target) `(,@(if (and source vendor-hash)
(build-inputs `(,@(if source
`(("source" ,source))
'())
,@(if (and source vendor-hash)
`(("vendored-go-dependencies" `(("vendored-go-dependencies"
,(origin ,(origin
(method (go-mod-vendor #:go go)) (method (go-mod-vendor #:go go))
(uri source) (uri source)
(sha256 vendor-hash)))) (file-name (string-append name "-vendored-go-dependencies"))
(hash
(if (content-hash? vendor-hash)
vendor-hash
(content-hash vendor-hash))))))
'()) '())
,@native-inputs ,@(bag-build-inputs go-bag)))
,@`(("go" ,go)) (build (bag-build go-bag))
,@(if target '() inputs-with-cache) (arguments
,@(if target (substitute-keyword-arguments
;; Use the standard cross inputs of (strip-keyword-arguments private-keywords (bag-arguments go-bag))
;; 'gnu-build-system'. ((#:imported-modules imported-modules '())
(standard-cross-packages target 'host) (if (null? imported-modules)
'()) %default-go-vendored-imported-modules
;; Keep the standard inputs of 'gnu-build-system'. imported-modules))
,@(standard-packages))) ((#:modules modules '())
(host-inputs (if target inputs-with-cache '())) (if (null? modules)
%default-go-vendored-modules
;; The cross-libc is really a target package, but for bootstrapping modules))))))
;; reasons, we can't put it in 'host-inputs'. Namely, 'cross-gcc' is a
;; native package, so it would end up using a "native" variant of
;; 'cross-libc' (built with 'gnu-build'), whereas all the other packages
;; would use a target variant (built with 'gnu-cross-build'.)
(target-inputs (if target
(standard-cross-packages target 'target)
'()))
(outputs outputs)
(build (if target go-vendored-cross-build go-vendored-build))
(arguments (strip-keyword-arguments private-keywords arguments))))
(define* (go-vendored-build name inputs
#:key
source
(phases '%standard-phases)
(outputs '("out"))
(search-paths '())
(install-source? #t)
(embed-files ''())
(import-path ".")
(unpack-path "")
(build-flags ''())
(skip-build? #f)
(tests? #t)
(test-flags ''())
(test-subdirs ''("..."))
(parallel-build? #t)
(parallel-tests? #t)
(allow-go-reference? #f)
(system (%current-system))
(goarch #f)
(goos #f)
(guile #f)
(imported-modules %default-go-vendored-imported-modules)
(modules %default-go-vendored-modules)
(substitutable? #t))
(define builder
(with-imported-modules imported-modules
#~(begin
(use-modules #$@modules)
(go-vendored-build #:name #$name
#:source #+source
#:system #$system
#:phases #$phases
#:outputs #$(outputs->gexp outputs)
#:goarch #$goarch
#:goos #$goos
#:embed-files #$embed-files
#:search-paths '#$(sexp->gexp
(map search-path-specification->sexp
search-paths))
#:install-source? #$install-source?
#:import-path #$import-path
#:unpack-path #$unpack-path
#:build-flags #$build-flags
#:skip-build? #$skip-build?
#:tests? #$tests?
#:test-flags #$test-flags
#:test-subdirs #$test-subdirs
#:parallel-build? #$parallel-build?
#:parallel-tests? #$parallel-tests?
#:allow-go-reference? #$allow-go-reference?
#:inputs #$(input-tuples->gexp inputs)))))
(mlet %store-monad ((guile (package->derivation (or guile (default-guile))
system #:graft? #f)))
(gexp->derivation name builder
#:system system
#:graft? #f
#:substitutable? substitutable?
#:guile-for-build guile)))
(define* (go-vendored-cross-build name
#:key
source target
build-inputs target-inputs host-inputs
(phases '%standard-phases)
(outputs '("out"))
(search-paths '())
(native-search-paths '())
(install-source? #t)
(import-path ".")
(unpack-path "")
(build-flags ''())
(skip-build? #f)
(tests? #f) ; nothing can be done
(test-flags ''())
(test-subdirs ''("..."))
(parallel-build? #t)
(parallel-tests? #t)
(allow-go-reference? #f)
(system (%current-system))
(goarch (first (go-target target)))
(goos (last (go-target target)))
(embed-files ''())
(guile #f)
(imported-modules %default-go-vendored-imported-modules)
(modules %default-go-vendored-modules)
(substitutable? #t))
"Cross-build NAME using GO, where TARGET is a GNU triplet and with INPUTS."
(define builder
(with-imported-modules imported-modules
#~(begin
(use-modules #$@(sexp->gexp modules))
(define %build-host-inputs
#+(input-tuples->gexp build-inputs))
(define %build-target-inputs
(append #$(input-tuples->gexp host-inputs)
#+(input-tuples->gexp target-inputs)))
(define %build-inputs
(append %build-host-inputs %build-target-inputs))
(define %outputs
#$(outputs->gexp outputs))
(go-vendored-build #:name #$name
#:source #+source
#:system #$system
#:phases #$phases
#:outputs %outputs
#:target #$target
#:goarch #$goarch
#:goos #$goos
#:embed-files #$embed-files
#:inputs %build-target-inputs
#:native-inputs %build-host-inputs
#:search-paths '#$(map search-path-specification->sexp
search-paths)
#:native-search-paths '#$(map
search-path-specification->sexp
native-search-paths)
#:install-source? #$install-source?
#:import-path #$import-path
#:unpack-path #$unpack-path
#:build-flags #$build-flags
#:skip-build? #$skip-build?
#:tests? #$tests?
#:test-flags #$test-flags
#:test-subdirs #$test-subdirs
#:parallel-build? #$parallel-build?
#:parallel-tests? #$parallel-tests?
#:make-dynamic-linker-cache? #f ;cross-compiling
#:allow-go-reference? #$allow-go-reference?
#:inputs %build-inputs))))
(mlet %store-monad ((guile (package->derivation (or guile (default-guile))
system #:graft? #f)))
(gexp->derivation name builder
#:system system
#:target target
#:graft? #f
#:substitutable? substitutable?
#:guile-for-build guile)))
(define go-vendored-build-system (define go-vendored-build-system
(build-system (build-system
(name 'go-vendored) (name 'go-vendored)
(description (description
"Build system for Go programs") "Build system for Go programs, with vendored dependencies")
(lower lower))) (lower lower)))
@@ -6,7 +6,7 @@
#:use-module ((guix build gnu-build-system) #:prefix gnu:) #:use-module ((guix build gnu-build-system) #:prefix gnu:)
#:use-module ((guix build go-build-system) #:prefix go:) #:use-module ((guix build go-build-system) #:prefix go:)
#:export (%standard-phases #:export (%standard-phases
go-vendored-build)) go-build))
(define* (unpack-vendored-dependencies #:key native-inputs inputs #:allow-other-keys) (define* (unpack-vendored-dependencies #:key native-inputs inputs #:allow-other-keys)
(let ((vendored-dependencies (let ((vendored-dependencies
@@ -24,6 +24,6 @@
(replace 'install-license-files (replace 'install-license-files
(assoc-ref gnu:%standard-phases 'install-license-files)))) (assoc-ref gnu:%standard-phases 'install-license-files))))
(define* (go-vendored-build #:key inputs (phases %standard-phases) (define* (go-build #:key inputs (phases %standard-phases)
#:allow-other-keys #:rest args) #:allow-other-keys #:rest args)
(apply gnu:gnu-build #:inputs inputs #:phases phases args)) (apply gnu:gnu-build #:inputs inputs #:phases phases args))
@@ -1,66 +0,0 @@
{
"appLauncher": {
"terminalCommand": "wezterm start --"
},
"colorSchemes": {
"darkMode": false,
"predefinedScheme": "Nord"
},
"dock": {
"displayMode": "exclusive",
"enabled": true,
"position": "left",
"size": 2
},
"osd": {
"enabled": true,
"enabledTypes": [
0,
1,
2,
3
]
},
"sessionMenu": {
"countdownDuration": 10000,
"enableCountdown": true,
"largeButtonsLayout": "single-row",
"largeButtonsStyle": true,
"position": "center",
"powerOptions": [
{
"action": "lock",
"enabled": false
},
{
"action": "suspend",
"enabled": false
},
{
"action": "hibernate",
"enabled": false
},
{
"action": "reboot",
"enabled": true
},
{
"action": "logout",
"enabled": false
},
{
"action": "shutdown",
"enabled": true
},
{
"action": "rebootToUefi",
"enabled": true
}
],
"showHeader": true,
"showNumberLabels": true
},
"wallpaper": {
"enabled": false
}
}
@@ -0,0 +1,30 @@
[bar.default]
capsule = true
concave_edge_corners = false
margin_ends = 0
radius = 0
[dock]
concave_edge_corners = false
enabled = true
launcher_position = "start"
position = "left"
show_dots = true
[shell]
polkit_agent = true
[[shell.session.actions]]
action = "reboot"
variant = "default"
[[shell.session.actions]]
action = "shutdown"
variant = "destructive"
[theme]
builtin = "Nord"
mode = "light"
[wallpaper]
enabled = false
+5 -4
View File
@@ -16,7 +16,7 @@
#:use-module (gnu home services) #:use-module (gnu home services)
#:use-module (gnu home services shepherd) #:use-module (gnu home services shepherd)
;; Guix packages ;; Guix packages
#:autoload (rosenthal packages wm) (noctalia) #:autoload (gnu packages window-management) (noctalia-shell)
#:export (home-graphical-session-service-type #:export (home-graphical-session-service-type
home-graphical-session-configuration home-graphical-session-configuration
@@ -53,8 +53,9 @@
(let ((name (in-vicinity directory name))) (let ((name (in-vicinity directory name)))
(and (string-match pattern name) (and (string-match pattern name)
(access? name O_RDWR))))) (access? name O_RDWR)))))
(or (reverse (scandir directory)) (reverse
'()))) (or (scandir directory)
'()))))
(if socket (if socket
(let ((display (let ((display
@@ -194,7 +195,7 @@
(define-configuration/no-serialization home-noctalia-configuration (define-configuration/no-serialization home-noctalia-configuration
(noctalia (noctalia
(file-like noctalia) (file-like noctalia-shell)
"File-like object to provide @command{/bin/noctalia}.")) "File-like object to provide @command{/bin/noctalia}."))
(define home-noctalia-shepherd-service (define home-noctalia-shepherd-service
+8 -28
View File
@@ -10,7 +10,7 @@
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix profiles) #:use-module (guix profiles)
#:use-module (guix records) #:use-module (guix records)
#:use-module (guix search-paths) #:autoload (guix self) (make-config.scm)
;; Guix System - services ;; Guix System - services
#:use-module (gnu services) #:use-module (gnu services)
#:use-module (gnu services configuration) #:use-module (gnu services configuration)
@@ -45,41 +45,21 @@ of Emacs extensions.")
(content (manifest (content (manifest
(cons (package->manifest-entry emacs) (cons (package->manifest-entry emacs)
(manifest-entries packages)))))) (manifest-entries packages))))))
(home-emacs-search-paths
(map search-path-specification->sexp
(manifest-search-paths
(profile-content home-emacs-profile))))
(home-emacs-program (home-emacs-program
(program-file "home-emacs-program" (program-file "home-emacs-program"
(with-imported-modules (with-imported-modules
(source-module-closure (cons `((guix config) => ,(make-config.scm))
'((guix search-paths) (delete '(guix config)
(guix build utils))) (source-module-closure '((guix profiles)))))
#~(begin #~(begin
(use-modules (ice-9 match) (use-modules (ice-9 match)
(guix search-paths) (guix profiles))
(guix build utils)) (load-profile #$home-emacs-profile)
(let ((profile #$home-emacs-profile))
;; See also (@ (guix profiles) load-profile).
(for-each
(match-lambda
((($ <search-path-specification> variable _ separator) . value)
(let ((current (getenv variable)))
(setenv variable
(if current
(if separator
(string-append value separator current)
value)
value)))))
(evaluate-search-paths
(map sexp->search-path-specification
'#$home-emacs-search-paths)
(list profile)))
(match (command-line) (match (command-line)
((cmd . args) ((cmd . args)
(apply system* (apply system*
(string-append profile "/bin/" (basename cmd)) (string-append #$home-emacs-profile "/bin/" (basename cmd))
args))))))))) args))))))))
(package (package
(inherit emacs) (inherit emacs)
(name "emacs-wrapper") (name "emacs-wrapper")
+25 -25
View File
@@ -41,7 +41,7 @@
(define-public cloudflare-warp-bin (define-public cloudflare-warp-bin
(package (package
(name "cloudflare-warp-bin") (name "cloudflare-warp-bin")
(version "2026.6.880.0") (version "2026.8.2115.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://pkg.cloudflareclient.com" (uri (string-append "https://pkg.cloudflareclient.com"
@@ -49,7 +49,7 @@
"cloudflare-warp_" version "_amd64.deb")) "cloudflare-warp_" version "_amd64.deb"))
(sha256 (sha256
(base32 (base32
"1wf2p09c1ak4mnnpl5pgnwlfy1x4nmhvsfnapyj1gdys93w4v7iy")))) "1haml4d32ddsryhzinf84h20gcw3y6hb1bzyik0q16vvxg6gqrwn"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list (list
@@ -130,7 +130,7 @@ different needs.")
(define-public tuwunel-bin (define-public tuwunel-bin
(package (package
(name "tuwunel-bin") (name "tuwunel-bin")
(version "1.8.2") (version "1.9.4")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@@ -140,7 +140,7 @@ different needs.")
(file-name (string-append name "-" version ".zst")) (file-name (string-append name "-" version ".zst"))
(sha256 (sha256
(base32 (base32
"0v6dlarsdr8rnj3gr7m3la0hv9xv18cyc4jx46qy0lljiwjrcdw2")))) "18ymxl238xzgwr2mp0d8f173qbik20nkzfdf6949xnny2dnqwqkq"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list #:tests? (not (%current-target-system)) (list #:tests? (not (%current-target-system))
@@ -189,7 +189,7 @@ the most niche uses.")
(define-public komga-bin (define-public komga-bin
(package (package
(name "komga-bin") (name "komga-bin")
(version "1.26.3") (version "1.29.1")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@@ -197,7 +197,7 @@ the most niche uses.")
"/komga-" version ".jar")) "/komga-" version ".jar"))
(sha256 (sha256
(base32 (base32
"09vrygb58zpngq9bp4zl3ip8h5am39nlni5igj6hpirw8p0v2g0n")))) "0d58dvcmbddw2sbymbz2xm73iv9pnzngkzvm4dy123bdxkhzmjp9"))))
(build-system copy-build-system) (build-system copy-build-system)
(arguments (arguments
(list #:install-plan (list #:install-plan
@@ -237,7 +237,7 @@ eBooks.")
(define-public navidrome-bin (define-public navidrome-bin
(package (package
(name "navidrome-bin") (name "navidrome-bin")
(version "0.63.2") (version "0.64.2")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@@ -245,7 +245,7 @@ eBooks.")
version "/navidrome_" version "_linux_amd64.tar.gz")) version "/navidrome_" version "_linux_amd64.tar.gz"))
(sha256 (sha256
(base32 (base32
"1w6lvqyhlgf4xi1jybpgnn5y6ga2cs39i5vv734sj4fcwmpnsk12")))) "0gn5sbx6q1jwz68jm0mkjp3n4sc5rv34vhhbqp16g1l10z8pzn7x"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list #:tests? (not (%current-target-system)) (list #:tests? (not (%current-target-system))
@@ -317,7 +317,7 @@ monster-in-the-middle}.")
(define-public wakapi-bin (define-public wakapi-bin
(package (package
(name "wakapi-bin") (name "wakapi-bin")
(version "2.17.6") (version "2.18.2")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@@ -325,7 +325,7 @@ monster-in-the-middle}.")
version "/wakapi_linux_amd64.zip")) version "/wakapi_linux_amd64.zip"))
(sha256 (sha256
(base32 (base32
"0pcf7n9znjb9yisf6kpxg79rlkxlrifahzp644z1ga5zrc1cjr9q")))) "0fr7948g4ddyzd5ih16w586i689viswzbgykbridvr4sm7q9hkm6"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list #:tests? (not (%current-target-system)) (list #:tests? (not (%current-target-system))
@@ -365,7 +365,7 @@ coding statistics.")
(define-public wakatime-cli-bin (define-public wakatime-cli-bin
(package (package
(name "wakatime-cli-bin") (name "wakatime-cli-bin")
(version "2.24.4") (version "2.27.13")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://github.com/wakatime/wakatime-cli" (uri (string-append "https://github.com/wakatime/wakatime-cli"
@@ -373,7 +373,7 @@ coding statistics.")
"/wakatime-cli-linux-amd64.zip")) "/wakatime-cli-linux-amd64.zip"))
(sha256 (sha256
(base32 (base32
"19g1y19k76pmnzi7irsk1jb7dvrqjd5884434x1s441v4zz6bynz")))) "12v7cm406vd8f01k8fzpcb68inm1zzlyq9v91n8pn1pfypagdbw9"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list #:tests? (not (%current-target-system)) (list #:tests? (not (%current-target-system))
@@ -415,15 +415,15 @@ to WakaTime, which is used by all WakaTime text editor plugins.")
(define-public grafana-bin (define-public grafana-bin
(package (package
(name "grafana-bin") (name "grafana-bin")
(version "12.4.2") (version "13.2.4")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://dl.grafana.com/grafana/release/" (uri (string-append "https://dl.grafana.com/grafana/release/"
version "/grafana_" version "_" version "/grafana_" version "_"
"23531306697_linux_amd64.tar.gz")) "38252365904_linux_amd64.tar.gz"))
(sha256 (sha256
(base32 (base32
"07sr78wi5nqlsx1nfj87bzgq29hcflqm6r5f5xcn9gq3m00b4h7j")))) "1awjgdcg79k7rzrx0q73nd5fda7q38jp19jfgrh751fqiyc6b1y4"))))
(build-system copy-build-system) (build-system copy-build-system)
(arguments (arguments
(list #:tests? (not (%current-target-system)) (list #:tests? (not (%current-target-system))
@@ -452,7 +452,7 @@ metrics no matter where they are stored.")
(define-public prometheus-bin (define-public prometheus-bin
(package (package
(name "prometheus-bin") (name "prometheus-bin")
(version "3.14.0") (version "3.15.1")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://github.com/prometheus/prometheus" (uri (string-append "https://github.com/prometheus/prometheus"
@@ -460,7 +460,7 @@ metrics no matter where they are stored.")
"/prometheus-" version ".linux-amd64.tar.gz")) "/prometheus-" version ".linux-amd64.tar.gz"))
(sha256 (sha256
(base32 (base32
"13a76636fw649d89nx4apwbv9jckjxyhrlqmr6cs6yzb37dccrgn")))) "113sv7sdarm67g7fgl8zlxl588mn5z77ds1npzmyznca6a2nhwka"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list #:tests? (not (%current-target-system)) (list #:tests? (not (%current-target-system))
@@ -504,7 +504,7 @@ observed.")
(define-public mimir-bin (define-public mimir-bin
(package (package
(name "mimir-bin") (name "mimir-bin")
(version "3.0.4") (version "3.2.3")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@@ -512,7 +512,7 @@ observed.")
version "/mimir-linux-amd64")) version "/mimir-linux-amd64"))
(sha256 (sha256
(base32 (base32
"09bhfbax659p1svzk8gq37vckqd62xsr219ab8f4r36c74ml3vz8")))) "17rhn69z3vvkxhfjr14gv7zx22x1spgf1cyj8gc0zidwy09d8wzj"))))
(build-system copy-build-system) (build-system copy-build-system)
(arguments (arguments
(list #:tests? (not (%current-target-system)) (list #:tests? (not (%current-target-system))
@@ -544,7 +544,7 @@ multi-tenant, long-term storage for Prometheus.")
(define-public loki-bin (define-public loki-bin
(package (package
(name "loki-bin") (name "loki-bin")
(version "3.7.6") (version "3.7.9")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@@ -552,7 +552,7 @@ multi-tenant, long-term storage for Prometheus.")
version "/loki-linux-amd64.zip")) version "/loki-linux-amd64.zip"))
(sha256 (sha256
(base32 (base32
"1sj8a9nmva2lnvbca8x62wy2lwlhnahdr99rpw814n0nfm117lh9")))) "1pc15vwi3d9knx3kjix9mv99n5hbj8h6dir71ibb6cz7ikigm98p"))))
(build-system copy-build-system) (build-system copy-build-system)
(arguments (arguments
(list #:install-plan (list #:install-plan
@@ -578,7 +578,7 @@ rather a set of labels for each log stream.")
(package (package
(inherit %binary-source) (inherit %binary-source)
(name "alloy") (name "alloy")
(version "1.18.1") (version "1.21.2")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@@ -586,13 +586,13 @@ rather a set of labels for each log stream.")
version "/alloy-linux-amd64.zip")) version "/alloy-linux-amd64.zip"))
(sha256 (sha256
(base32 (base32
"0g28gg013a8i3d35aqfxhsp94hzp65dni6lg6si50flqqg5m7j7s")))))) "1kq4gz8aza3gwvzkgnw00rclsphlnkcsqwq14n2724j00rmb9b8y"))))))
(define-public %alloy-source-aarch64-linux (define-public %alloy-source-aarch64-linux
(package (package
(inherit %binary-source) (inherit %binary-source)
(name "alloy") (name "alloy")
(version "1.18.1") (version "1.21.2")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@@ -600,7 +600,7 @@ rather a set of labels for each log stream.")
version "/alloy-linux-arm64.zip")) version "/alloy-linux-arm64.zip"))
(sha256 (sha256
(base32 (base32
"1mknhvxbppcg5x2lwk7832l6wlk2h7cm7y8ay34xc515wb7ld529")))))) "00gld9kxrj0xrci519vcaj4rxbcr6zk5204gq40g2pyf9d4sf8ip"))))))
(define-public alloy-bin (define-public alloy-bin
(binary-package (binary-package
+7 -8
View File
@@ -39,7 +39,7 @@
(define-public limine (define-public limine
(package (package
(name "limine") (name "limine")
(version "11.3.1") (version "12.9.4")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append
@@ -47,7 +47,7 @@
"/download/v" version "/limine-" version ".tar.xz")) "/download/v" version "/limine-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"0d0221xc3374xq6bx26dkmidcf6slxc6dq6qnjdc3lrx3xda21jw")))) "1hzl8701h26cadq004jvv55yb2q2ydnd09zxbpghk3c1xiin8mqb"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list #:tests? #f (list #:tests? #f
@@ -84,8 +84,7 @@
(description (description
"Limine is a multiprotocol bootloader and boot manager. It's also used as "Limine is a multiprotocol bootloader and boot manager. It's also used as
the reference implementation for the Limine boot protocol.") the reference implementation for the Limine boot protocol.")
(license license:bsd-2) (license license:bsd-2)))
(properties '((disable-updater? . #t)))))
;;; ;;;
@@ -103,7 +102,7 @@ the reference implementation for the Limine boot protocol.")
(define-public systemd-stub (define-public systemd-stub
(package (package
(name "systemd-stub") (name "systemd-stub")
(version "261.2") (version "262.1")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -112,7 +111,7 @@ the reference implementation for the Limine boot protocol.")
(file-name (git-file-name "name" version)) (file-name (git-file-name "name" version))
(sha256 (sha256
(base32 (base32
"014mjygixfh9j1p1f09xgy114v5lfah6hwh8xcscy1nqxk3p2hf3")))) "1v2i19b9iq83q9krhy69wn59xdianql69gyblx9ljxr37x0phkq4"))))
(build-system meson-build-system) (build-system meson-build-system)
(arguments (arguments
(list #:tests? #f (list #:tests? #f
@@ -146,7 +145,7 @@ Supports measured and/or verified boot environments.")
(define-public ukify (define-public ukify
(package (package
(name "ukify") (name "ukify")
(version "261.2") (version "262.1")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -155,7 +154,7 @@ Supports measured and/or verified boot environments.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"014mjygixfh9j1p1f09xgy114v5lfah6hwh8xcscy1nqxk3p2hf3")))) "1v2i19b9iq83q9krhy69wn59xdianql69gyblx9ljxr37x0phkq4"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list #:phases (list #:phases
@@ -20,7 +20,7 @@
(define bitwarden (define bitwarden
(package (package
(name "bitwarden") (name "bitwarden")
(version "2026.3.0") (version "2026.10.0")
(source (origin (source (origin
(method url-fetch/zipbomb) (method url-fetch/zipbomb)
(uri (string-append "https://github.com/bitwarden/clients" (uri (string-append "https://github.com/bitwarden/clients"
@@ -28,7 +28,7 @@
"/dist-firefox-" version ".zip")) "/dist-firefox-" version ".zip"))
(sha256 (sha256
(base32 (base32
"1jsc9w8w1vix7gzcrlxg3aslqnr27hwhaqvf0slhc7s3dgwnfrqq")))) "0k8c1wfq9yzgyq7whj5gbp00pbkr4a7aklkd3ybczi4zws1d55v8"))))
(build-system copy-build-system) (build-system copy-build-system)
(arguments (arguments
(list #:install-plan (list #:install-plan
@@ -103,7 +103,7 @@ results are added in a sidebar next to search engine results.")
(define ohmyech (define ohmyech
(package (package
(name "ohmyech") (name "ohmyech")
(version "1.2") (version "1.5")
(properties (properties
'((addon-id . "{46b8ab0b-8adf-4e43-ad67-acef5a8d45c9}") '((addon-id . "{46b8ab0b-8adf-4e43-ad67-acef5a8d45c9}")
(hidden? . #t) (hidden? . #t)
@@ -112,11 +112,11 @@ results are added in a sidebar next to search engine results.")
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/27justin/ohmyech") (url "https://github.com/27justin/ohmyech")
(commit "aa0cf4cc5c4bcb6ce508d8a4e7ee4c95c2e63cbe"))) (commit "1faea936f6507580c6b2bd04dc57449398c799f4")))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1cqgfv2q7shisi9ijac5s85xy9q2rz9f9hxwq3q41vfgrcvd8zng")) "0r1kipfy3afgc0jabav7q7h90d153nly1iakn4pfrwf8401n4qsi"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
#~(substitute* "manifest.json" #~(substitute* "manifest.json"
-8
View File
@@ -11,11 +11,3 @@
#:use-module (guix git-download) #:use-module (guix git-download)
;; Guix packages ;; Guix packages
#:use-module (gnu packages ci)) #:use-module (gnu packages ci))
(define-public cuirass/dolly
(package
(inherit
(package-with-extra-patches cuirass
(rosenthal-patches "cuirass-templates-Add-more-forges.patch")))
(name "cuirass-dolly")
(properties '((disable-updater? . #t)))))
+3 -3
View File
@@ -13,8 +13,8 @@
(define-public dnsmasq-china-list (define-public dnsmasq-china-list
;; No version. ;; No version.
(let ((commit "7da1a5a5885c3f19dd000aa76a25e457352dd696") (let ((commit "c79474a5445e7ebbde7275648b1078a0582510ab")
(revision "21")) (revision "22"))
(package (package
(name "dnsmasq-china-list") (name "dnsmasq-china-list")
(version (git-version "0.0.0" revision commit)) (version (git-version "0.0.0" revision commit))
@@ -26,7 +26,7 @@
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"04dgra5123k94k0q1v9f7rmk3zdzc429hkr6jvn1lx4cxfcs0zfq")))) "0ifgkg7l31623q46cx0ymcfvw4gkmnir47z2xdn203icwic6224y"))))
(build-system copy-build-system) (build-system copy-build-system)
(arguments (arguments
(list #:install-plan (list #:install-plan
+10 -88
View File
@@ -3,6 +3,7 @@
(define-module (rosenthal packages emacs-xyz) (define-module (rosenthal packages emacs-xyz)
;; Utilities ;; Utilities
#:use-module (guix deprecation)
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages) #:use-module (guix packages)
@@ -50,7 +51,7 @@ editing Caddyfiles, configuration files for @code{caddy}.")
(define-public emacs-consult-ghostel (define-public emacs-consult-ghostel
(package (package
(name "emacs-consult-ghostel") (name "emacs-consult-ghostel")
(version "0.53.0") (version "0.59.0")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -59,7 +60,7 @@ editing Caddyfiles, configuration files for @code{caddy}.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0ph1gjl3915wgf7qz2c389gnm64yn07q9jb69dyqy6r8fkzmyd37")))) "1rfs5jd2xgpilh9xv9mpjpqn7b71iixkgbnpmqi3nwzb8dz0rqnm"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(arguments (arguments
(list #:tests? #f ;no tests (list #:tests? #f ;no tests
@@ -91,30 +92,6 @@ editing Caddyfiles, configuration files for @code{caddy}.")
"14d6nvagcri0r687y3m179ijmnad89m5d5dj2rn2p6rpfc5nssr0")))))) "14d6nvagcri0r687y3m179ijmnad89m5d5dj2rn2p6rpfc5nssr0"))))))
(name "emacs-eat-dolly"))) (name "emacs-eat-dolly")))
(define-public emacs-flycheck-eglot
(let ((commit "cd1dd78cec0ae1f566c765d98bbff322cc7b67ef")
(revision "0"))
(package
(name "emacs-flycheck-eglot")
(version (git-version "1.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/flycheck/flycheck-eglot")
(commit commit)))
(sha256 (base32 "19i2a33mpddd64mnvjk247ayn325p66lknm9pqjb0ccjfwi54sml"))))
(build-system emacs-build-system)
(propagated-inputs (list emacs-flycheck))
(home-page "https://github.com/flycheck/flycheck-eglot")
(synopsis "Flycheck support for eglot")
(description
"This package provides a simple \"glue\" minor mode that allows Flycheck
and Eglot to work together. Thus, the Flycheck frontend can display the results
of syntactic checks performed by the LSP server.")
(license (list license:gpl3+ license:expat))
(properties '((disable-updater? . #t))))))
(define-public emacs-isearch-mb (define-public emacs-isearch-mb
(package (package
(name "emacs-isearch-mb") (name "emacs-isearch-mb")
@@ -139,8 +116,8 @@ some keybindings are slightly simplified.")
(properties '((disable-updater? . #t))))) (properties '((disable-updater? . #t)))))
(define-public emacs-kdl-mode (define-public emacs-kdl-mode
(let ((commit "2d849e298199f490e4894c01764a8a83decd704a") (let ((commit "e966ed4b53f8a72b88a016e61bcadec42f317e39")
(revision "0")) (revision "1"))
(package (package
(name "emacs-kdl-mode") (name "emacs-kdl-mode")
(version (git-version "0.0.1" revision commit)) (version (git-version "0.0.1" revision commit))
@@ -152,7 +129,7 @@ some keybindings are slightly simplified.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"18va5ipay9grbv84kwq9ji4dn1sabnzydj4hb1mjd9mbbibw1wg4")))) "070ngannx77m39hwvsdr4pk17ki1l4nzsi746w21q5mfbp8gl9w1"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(arguments (list #:tests? #f)) ;No tests. (arguments (list #:tests? #f)) ;No tests.
(home-page "https://github.com/taquangtrung/emacs-kdl-mode") (home-page "https://github.com/taquangtrung/emacs-kdl-mode")
@@ -174,29 +151,7 @@ some keybindings are slightly simplified.")
(name "emacs-magit-delta-dolly") (name "emacs-magit-delta-dolly")
(properties '((disable-updater? . #t))))) (properties '((disable-updater? . #t)))))
(define-public emacs-majutsu/dolly (define-deprecated-package emacs-majutsu/dolly "emacs-majutsu-dolly" emacs-majutsu)
(let ((commit "56b6e263cd4ecaf8e44e955647bffafe56f54f34")
(revision "5"))
(package
(inherit emacs-majutsu)
(name "emacs-majutsu-dolly")
(version (git-version "0.6.0" revision commit))
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/0WD0/majutsu")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"0ljq6psp8rar0sksfnjydji2sm3vvhpvpi4yay14wa6ldaclihx4"))))
(arguments
(substitute-keyword-arguments arguments
((#:tests? _ #t) #f)))
(propagated-inputs
(modify-inputs propagated-inputs
(prepend emacs-consult emacs-plz)))
(properties '((disable-updater? . #t))))))
(define-public emacs-msgpack (define-public emacs-msgpack
(let ((commit "5353a7b2da854c843cbec4536996242001f63471") (let ((commit "5353a7b2da854c843cbec4536996242001f63471")
@@ -249,45 +204,12 @@ and it's subcommands.")
(properties (properties
'((disable-updater? . #t)))))) '((disable-updater? . #t))))))
(define-public emacs-reader (define-deprecated-package emacs-reader emacs-emureader)
(let ((commit "a0e3615adbf520a5743bbbfd7da6d2bb8478b30b")
(revision "2"))
(package
(name "emacs-reader")
(version (git-version "0.3.2" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://codeberg.org/divyaranjan/emacs-reader")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "012i36l5wgzw4mbxr2knb96f7x95qfg0pqa7dfam23fmsfw57fy0"))))
(build-system emacs-build-system)
(arguments
(list
#:tests? #f ;no tests
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'build-module
(lambda _
(invoke "make" "USE_PKGCONFIG=no")))
(add-after 'build-module 'install-module
(lambda _
(install-file "render-core.so" (elpa-directory #$output)))))))
(inputs (list mupdf))
(home-page "https://codeberg.org/divyaranjan/emacs-reader")
(synopsis "Emacs document reader")
(description
"GNU Emacs document reader that supports all major document formats.")
(license license:gpl3+)
(properties '((disable-updater? . #t))))))
(define-public emacs-tramp-rpc (define-public emacs-tramp-rpc
(package (package
(name "emacs-tramp-rpc") (name "emacs-tramp-rpc")
(version "0.13.1") (version "0.15.0")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -296,7 +218,7 @@ and it's subcommands.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1991b8vc3k3kkm77ad5c9z8jx9nxpxbmv26vv1y5v7z3cdp12wzj")))) "168v9hfawrb496da3mhy1a4pignbfa5109q3x5rlk7pjaf1z7836"))))
(build-system emacs-build-system) (build-system emacs-build-system)
(arguments (arguments
(list #:lisp-directory "lisp" (list #:lisp-directory "lisp"
@@ -0,0 +1,23 @@
;;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Copyright © 2026 Hilton Chain <hako@ultrarare.space>
(define-module (rosenthal packages file-systems)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (gnu packages file-systems))
(define-public zfs-cachyos
(let ((commit "fb48c76e17d3e0092fbba430a9eec1960e1b9961")
(revision "0"))
(package/inherit zfs
(name "zfs-cachyos")
(version (git-version "2.4.5" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/CachyOS/zfs")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1zb3rs40fhkhn2fd3g5aspm50cy4xvg84ah84h5brz6abvfr1rg4")))))))
+4 -2
View File
@@ -44,7 +44,7 @@
(define-public prismlauncher/dolly (define-public prismlauncher/dolly
(package (package
(name "prismlauncher-dolly") (name "prismlauncher-dolly")
(version "11.0.3") (version "11.1.1")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -54,7 +54,7 @@
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"04dv4c849lghhqq25p58l5aq37r2kvx9297w1139x9ajab97xhhf")) "1dm1fdb2z6jyb04ml2jxdqgaxr14a6a4i41r89fdpg22ngx12kkk"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(substitute* "launcher/CMakeLists.txt" '(substitute* "launcher/CMakeLists.txt"
@@ -101,6 +101,7 @@
"libX11.so" "libX11.so"
"libXcursor.so" "libXcursor.so"
"libXext.so" "libXext.so"
"libXi.so"
"libXrandr.so" "libXrandr.so"
"libXxf86vm.so" "libXxf86vm.so"
;; openal ;; openal
@@ -124,6 +125,7 @@
libarchive libarchive
libusb libusb
libx11 libx11
libxi
libxcursor libxcursor
libxext libxext
libxrandr libxrandr
+308
View File
@@ -0,0 +1,308 @@
;;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Copyright © 2026 Hilton Chain <hako@ultrarare.space>
(define-module (rosenthal packages linux)
;; Guile builtins
#:use-module (ice-9 match)
#:use-module (ice-9 regex)
;; Utilities
#:use-module (guix diagnostics)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix utils)
;; Guix origin methods
#:use-module (guix download)
#:use-module (guix git-download)
;; Guix packages
#:use-module (gnu packages linux)
#:export (default-initrd-configs
cachyos-configs))
(define* (default-initrd-configs
#:optional
(system (or (%current-target-system)
(%current-system))))
"Kernel configurations required by 'default-linux-libre-initrd-modules'."
`("CONFIG_NLS_ISO8859_1=m"
"CONFIG_CRYPTO_SERPENT=m"
"CONFIG_CRYPTO_WP512=m"
"CONFIG_DM_CRYPT=m"
"CONFIG_BLK_DEV_NVME=m"
"CONFIG_MMC_BLOCK=m"
"CONFIG_SATA_AHCI=m"
"CONFIG_USB_STORAGE=m"
"CONFIG_USB_UAS=m"
,@(if (string-match "^(x86_64|i[3-6]86)-" system)
'("CONFIG_PATA_ACPI=m"
"CONFIG_PATA_ATIIXP=m"
"CONFIG_SCSI_ISCI=m")
'())
"CONFIG_HW_RANDOM_VIRTIO=m"
"CONFIG_SCSI_VIRTIO=m"
"CONFIG_VIRTIO_BALLOON=m"
"CONFIG_VIRTIO_BLK=m"
"CONFIG_VIRTIO_CONSOLE=m"
"CONFIG_VIRTIO_MMIO=m"
"CONFIG_VIRTIO_NET=m"
"CONFIG_VIRTIO_PCI=m"
"CONFIG_HID_GENERIC=m"
"CONFIG_USB_HID=m"
,@(if (target-riscv64? system)
'()
'("CONFIG_HID_APPLE=m"))))
;;;
;;; linux-cachyos
;;; https://github.com/CachyOS/linux-cachyos
;;;
(define* (cachyos-configs #:key (major-version "6")
cachy-config?
cpusched
cc-harder?
per-gov?
tcp-bbr3?
HZ-ticks
tickrate
preempt
hugepage
processor-opt)
`(,@(match processor-opt
('generic
'("CONFIG_GENERIC_CPU=y"
"CONFIG_MZEN4"
"CONFIG_X86_NATIVE_CPU"))
('zen4
'("CONFIG_GENERIC_CPU"
"CONFIG_MZEN4=y"
"CONFIG_X86_NATIVE_CPU"))
('native
'("CONFIG_GENERIC_CPU"
"CONFIG_MZEN4"
"CONFIG_X86_NATIVE_CPU=y"))
(_ '()))
,@(if cachy-config?
'("CONFIG_CACHY=y")
'())
,@(match cpusched
((or 'cachyos 'bore 'hardened)
'("CONFIG_SCHED_BORE=y"))
('bmq
'("CONFIG_SCHED_ALT=y"
"CONFIG_SCHED_BMQ=y"))
('eevdf
'())
('rt
'("CONFIG_PREEMPT_RT=y"))
('rt-bore
'("CONFIG_SCHED_BORE=y"
"CONFIG_PREEMPT_RT=y"))
(_ '()))
,@(match HZ-ticks
((or 100 250 500 600 750 1000)
`("CONFIG_HZ_300"
,(format #f "CONFIG_HZ_~a=y" HZ-ticks)
,(format #f "CONFIG_HZ=~a" HZ-ticks)))
(300
'("CONFIG_HZ_300=y"
"CONFIG_HZ=300"))
(_ '()))
,@(if per-gov?
'("CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL"
"CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y")
'())
,@(match tickrate
('periodic
'("CONFIG_NO_HZ_IDLE"
"CONFIG_NO_HZ_FULL"
"CONFIG_NO_HZ"
"CONFIG_NO_HZ_COMMON"
"CONFIG_HZ_PERIODIC=y"))
('idle
'("CONFIG_HZ_PERIODIC"
"CONFIG_NO_HZ_FULL"
"CONFIG_NO_HZ_IDLE=y"
"CONFIG_NO_HZ"
"CONFIG_NO_HZ_COMMON"))
('full
'("CONFIG_HZ_PERIODIC"
"CONFIG_NO_HZ_IDLE"
"CONFIG_CONTEXT_TRACKING_FORCE"
"CONFIG_NO_HZ_FULL=y"
"CONFIG_NO_HZ=y"
"CONFIG_NO_HZ_COMMON=y"
"CONFIG_CONTEXT_TRACKING=y")))
,@(if (not (member cpusched '(rt rt-bore)))
(if (version>=? major-version "7.0")
(match preempt
('full
'("CONFIG_PREEMPT=y"
"CONFIG_PREEMPT_LAZY"))
('lazy
'("CONFIG_PREEMPT"
"CONFIG_PREEMPT_LAZY=y"))
(_ '()))
(match preempt
('full
'("CONFIG_PREEMPT_DYNAMIC=y"
"CONFIG_PREEMPT=y"
"CONFIG_PREEMPT_VOLUNTARY"
"CONFIG_PREEMPT_LAZY"
"CONFIG_PREEMPT_NONE"))
('lazy
'("CONFIG_PREEMPT_DYNAMIC=y"
"CONFIG_PREEMPT"
"CONFIG_PREEMPT_VOLUNTARY"
"CONFIG_PREEMPT_LAZY=y"
"CONFIG_PREEMPT_NONE"))
('voluntary
'("CONFIG_PREEMPT_DYNAMIC"
"CONFIG_PREEMPT=y"
"CONFIG_PREEMPT_VOLUNTARY=y"
"CONFIG_PREEMPT_LAZY"
"CONFIG_PREEMPT_NONE"))
('none
'("CONFIG_PREEMPT_DYNAMIC"
"CONFIG_PREEMPT"
"CONFIG_PREEMPT_VOLUNTARY"
"CONFIG_PREEMPT_LAZY"
"CONFIG_PREEMPT_NONE=y"))
(_ '())))
'())
,@(if cc-harder?
'("CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE"
"CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE_O3=y")
'())
,@(if tcp-bbr3?
'("CONFIG_TCP_CONG_CUBIC=m"
"CONFIG_DEFAULT_CUBIC"
"CONFIG_TCP_CONG_BBR=y"
"CONFIG_DEFAULT_BBR=y"
"CONFIG_DEFAULT_TCP_CONG=\"bbr\""
"CONFIG_NET_SCH_FQ_CODEL=m"
"CONFIG_NET_SCH_FQ=y"
"CONFIG_DEFAULT_FQ_CODEL"
"CONFIG_DEFAULT_FQ=y")
'())
,@(match hugepage
('always
'("CONFIG_TRANSPARENT_HUGEPAGE_MADVISE"
"CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y"))
('madvise
'("CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS"
"CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y"))
(_ '()))
,@(if (version>=? major-version "7.0")
'()
'("CONFIG_USER_NS=y"))))
(define (%kernel-config commit hash)
(let ((source
(origin
(method git-fetch)
(uri (git-reference
(url "https://codeberg.org/hako/kernel-config.git")
(commit commit)))
(file-name (string-append "kernel-config." (string-take commit 7)))
(hash
(if (content-hash? hash)
hash
(content-hash hash))))))
(lambda (path)
(file-append source path))))
(define-public linux-cachyos-lts-server
(let* ((version "6.18.65-1")
(config
(%kernel-config
"30ca31f1a4b05d9c42f1b9482f6a7419b12453be"
(base32 "0qb8mgrj458xxjp3m050lf03wf4j2nz4jpxix068cv0pnvlj3y3k")))
(kernel
(customize-linux
#:name "linux-cachyos-lts-server"
#:source
(origin
(method url-fetch)
(uri (string-append
"https://github.com/CachyOS/linux/releases/download/cachyos-"
version "/cachyos-" version ".tar.gz"))
(sha256
(base32 "102ad9k412166b6kdaiql15dynanqm11gppagpi1zx4cz80lwkm0")))
#:defconfig (config "/defconfig_server")
#:configs
(string-join
(append (cachyos-configs
#:major-version (version-major version)
#:cachy-config? #f
#:cpusched 'eevdf
#:cc-harder? #t
#:per-gov? #f
#:tcp-bbr3? #t
#:HZ-ticks 300
#:tickrate 'full
#:preempt 'none
#:hugepage 'madvise
#:processor-opt 'generic)
(default-initrd-configs))
"\n"))))
(package
(inherit kernel)
(version version)
(home-page "https://cachyos.org/")
(synopsis "CachyOS Linux kernel (lts + server)")
(description "")
(supported-systems '("x86_64-linux"))
(properties
(cons '(disable-updater? . #t)
(package-properties kernel))))))
(define-public linux-cachyos-bore-zen4
(let* ((version "7.3.6-1")
(config
(%kernel-config
"f45de89952cd52542e3a3cbf4fcedaa75d817e89"
(base32 "12xhs53ihg4k1vgx042acfri174mblbfrcp0199i3fbl0vy0xpaz")))
(kernel
(customize-linux
#:name "linux-cachyos-bore-zen4"
#:source
(origin
(method url-fetch)
(uri (string-append
"https://github.com/CachyOS/linux/releases/download/cachyos-"
version "/cachyos-" version ".tar.gz"))
(sha256
(base32 "0gvgp0hwnrdgxs07wlz474c40g15z1r3aq7dq1yi4nn5p09yhp7v"))
(patches (map config '("/patches/bore-cachy-7.3.patch"))))
#:defconfig (config "/defconfig_desktop")
#:configs
(string-join
(append (cachyos-configs
#:major-version (version-major version)
#:cachy-config? #t
#:cpusched 'bore
#:cc-harder? #t
#:per-gov? #f
#:tcp-bbr3? #t
#:HZ-ticks 1000
#:tickrate 'full
#:preempt 'full
#:hugepage 'always
#:processor-opt 'zen4)
(default-initrd-configs))
"\n"))))
(package
(inherit kernel)
(version version)
(home-page "https://cachyos.org/")
(synopsis "CachyOS Linux kernel (bore + znver4)")
(description "")
(supported-systems '("x86_64-linux"))
(properties
(cons '(disable-updater? . #t)
(package-properties kernel))))))
+4 -4
View File
@@ -65,7 +65,7 @@ users.")
(define-public mautrix-telegram (define-public mautrix-telegram
(package (package
(name "mautrix-telegram") (name "mautrix-telegram")
(version "0.2608.0") (version "0.2610.0")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -74,12 +74,12 @@ users.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1h9nl6ba1lxdy7fxk36asigpxmgav6bw8ydif267cscfq7vxq3hi")))) "1vcb2s3gjmy2zgzn0mqhwf7q64fxnwkk2rwgpzzdm125vamfv0fs"))))
(build-system go-vendored-build-system) (build-system go-vendored-build-system)
(arguments (arguments
(list #:go go-1.26 (list #:go go-1.27
#:vendor-hash #:vendor-hash
(base32 "0vz2ziaps5l19zzpw2mkxhbnl33pn3srs6ayvblj51ap6dxc47dj") (base32 "0pam76235zni6xpxmxmaddwhbw8fpcb9idlkmsvs085df0kfbf95")
#:install-source? #f #:install-source? #f
#:import-path "./cmd/mautrix-telegram" #:import-path "./cmd/mautrix-telegram"
#:phases #:phases
+16 -18
View File
@@ -24,22 +24,20 @@
(define-public cloudflared (define-public cloudflared
(package (package
(name "cloudflared") (name "cloudflared")
(version "2026.8.2") (version "2026.10.3")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/cloudflare/cloudflared") (url "https://github.com/cloudflare/cloudflared")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
;; TODO: Unbundle vendored dependencies.
;; (modules '((guix build utils)))
;; (snippet '(delete-file-recursively "vendor"))
(sha256 (sha256
(base32 (base32
"050xr8yjzrcyj53grvvafpi5d5dl7hjiiv4zjjzb2bcf65rak5za")))) "1f5hvvzwkwa2idchpds4492byf9qph0all3qakwy9d68f688qlwk"))))
(build-system go-vendored-build-system) (build-system go-vendored-build-system)
(arguments (arguments
(list #:go go-1.26 (list #:go go-1.27
#:vendor-hash (base32 "13abls96kzzw813i09r04agbriv0608cz66c9rsi53xl95fcp91a")
#:install-source? #f #:install-source? #f
#:import-path "./cmd/cloudflared" #:import-path "./cmd/cloudflared"
#:build-flags #:build-flags
@@ -71,7 +69,7 @@ origin can remain as closed as possible.")
(define-public mihomo (define-public mihomo
(package (package
(name "mihomo") (name "mihomo")
(version "1.19.30") (version "1.19.33")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -80,12 +78,12 @@ origin can remain as closed as possible.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"07zxbng654wjy3qj776px1ds6kzr30hp832r3pcvjchiabqcab23")))) "0ji0yrv0slsjafir6058dmb5c8h0gr4x84z2r3v3vlbdc78qjqrv"))))
(build-system go-vendored-build-system) (build-system go-vendored-build-system)
(arguments (arguments
(list (list
#:go go-1.26 #:go go-1.27
#:vendor-hash (base32 "0vw4xcqmmpq4mkskwlwszb6la1qjyiwy5bbhpji6zsmixwzaxr70") #:vendor-hash (base32 "08krx6f9k0n6y9g0ki2djr9qqqy5nx9dh0x2vbx0xf52kp52myf0")
#:tests? (not (%current-target-system)) ;TODO: Run test suite. #:tests? (not (%current-target-system)) ;TODO: Run test suite.
#:install-source? #f #:install-source? #f
#:build-flags #:build-flags
@@ -119,7 +117,7 @@ bypass network restrictions." )
(define-public sing-box (define-public sing-box
(package (package
(name "sing-box") (name "sing-box")
(version "1.14.0") (version "1.14.3")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -128,12 +126,12 @@ bypass network restrictions." )
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1yavxj1raksii1sy5j1fp4v54glrbpz9la19l5cpzqw7rn05pzyn")))) "0qysb5c9z8n9dzzvxna9f3pdms88n6rhvjkl94c66almb20pjbqb"))))
(build-system go-vendored-build-system) (build-system go-vendored-build-system)
(arguments (arguments
(list (list
#:go go-1.26 #:go go-1.27
#:vendor-hash (base32 "16h4lmpi636dnz760qyihnqxgv3hn4vb9p22j5wjhfx7955gfph6") #:vendor-hash (base32 "0dxmrd6arnhq099valg02wzpni2lb3r61yy8haq3y23299lvhry1")
#:install-source? #f #:install-source? #f
#:import-path "./cmd/sing-box" #:import-path "./cmd/sing-box"
#:build-flags #:build-flags
@@ -218,7 +216,7 @@ a SOCKS5 proxy.")
(define-public tailscale (define-public tailscale
(package (package
(name "tailscale") (name "tailscale")
(version "1.102.3") (version "1.104.2")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -227,7 +225,7 @@ a SOCKS5 proxy.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0pqnc5bxl01nzpg2alb6njwq9k0g9psckw7v3wjfraf228rawd9p")) "1gc9n452qgzv30wca73gjyrcxizrblhndk29147zazxhjha0vjdw"))
(patches (patches
(rosenthal-patches (rosenthal-patches
"tailscale-set-guix-system-PATH-for-SSH.patch")) "tailscale-set-guix-system-PATH-for-SSH.patch"))
@@ -240,8 +238,8 @@ a SOCKS5 proxy.")
(build-system go-vendored-build-system) (build-system go-vendored-build-system)
(arguments (arguments
(list (list
#:go go-1.26 #:go go-1.27
#:vendor-hash (base32 "01wvidvld4749f9bdsmvi84l005k6lfsqvcn6yw13jikzd8a8qka") #:vendor-hash (base32 "1vimwbhaddc52nvp4akrz548z47r6iw7x9f3zjbcsrqaqi5q66sp")
#:tests? (not (%current-target-system)) ;TODO: Run test suite. #:tests? (not (%current-target-system)) ;TODO: Run test suite.
#:install-source? #f #:install-source? #f
#:build-flags #:build-flags
@@ -18,21 +18,9 @@
#:use-module (gnu packages guile) #:use-module (gnu packages guile)
#:use-module (gnu packages package-management)) #:use-module (gnu packages package-management))
(define-public guix/dolly
(package
(inherit
(package-with-extra-patches guix
(rosenthal-patches "guix-change-publish-cache-storage.patch")))
(name "guix-dolly")
(arguments
(substitute-keyword-arguments arguments
((#:parallel-build? _ #f) #t)
((#:tests? _ #t) #f)))
(properties '((disable-updater? . #t)))))
(define guix-for-mirror-substitutes (define guix-for-mirror-substitutes
(let ((commit "64d4de2a920445e5992f020e56490f5fcbdbba7c") (let ((commit "5ceffb60e55b86920fd720817dd24b0e1f900ac1")
(revision "6")) (revision "7"))
(package (package
(inherit guix) (inherit guix)
(name "guix") (name "guix")
@@ -42,19 +30,15 @@
(uri (git-reference (uri (git-reference
(url "https://git.guix.gnu.org/guix.git") (url "https://git.guix.gnu.org/guix.git")
(commit commit))) (commit commit)))
(file-name (git-file-name name version)) (file-name (string-append "guix-" version "-checkout"))
(sha256 (sha256
(base32 (base32
"1j3gz77rrlg62ffxqacg1r0rhibmhbhkh0ygh27ambj495i0mi0b")))) "0nb0xhd2jlg613d3z3br6yl3xj75b4vlyw9y45pwg8zrq02kjajd")))))))
(arguments
(substitute-keyword-arguments arguments
((#:parallel-build? _ #f) #t)
((#:tests? _ #t) #f))))))
(define-public mirror-substitutes (define-public mirror-substitutes
(package (package
(name "mirror-substitutes") (name "mirror-substitutes")
(version "0.0.2") (version "0.0.3")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -63,7 +47,7 @@
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1fbv24n12p83gp9l8nnjmymgqbwyvmy086fnfwxdg8c9c6rfbl4j")))) "1qf2180bj36py05wz031m5fk2xmzwyf2cl8nhcnny63ghkm27m7j"))))
(build-system guile-build-system) (build-system guile-build-system)
(arguments (arguments
(list (list
@@ -1,53 +0,0 @@
From 90bf62f411590cc0b813e6f62c3a0ef89cf17d1f Mon Sep 17 00:00:00 2001
From: Hilton Chain <hako@ultrarare.space>
Date: Sun, 30 Nov 2025 12:13:36 +0800
Subject: [PATCH] templates: Add more forges.
---
src/cuirass/templates.scm | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/cuirass/templates.scm b/src/cuirass/templates.scm
index 1cf7ebf..042d46a 100644
--- a/src/cuirass/templates.scm
+++ b/src/cuirass/templates.scm
@@ -1526,7 +1526,9 @@ (define %vcs-web-views
("git.guix.gnu.org" ,labhub-url) ;alias for codeberg.org
("gitlab.com" ,labhub-url)
("gitlab.inria.fr" ,labhub-url)
- ("github.com" ,labhub-url))))
+ ("github.com" ,labhub-url)
+ ("git.sr.ht" ,labhub-url)
+ ("git.guix.moe" ,labhub-url))))
(define %vcs-web-commit-range-views
;; List of host names and corresponding URL to display a commit range.
@@ -1541,7 +1543,13 @@ (define %vcs-web-commit-range-views
(if (string-suffix? ".git" repository-url)
(string-drop-right repository-url 4)
repository-url)
- "/compare/" commit1 ".." commit2))))
+ "/compare/" commit1 ".." commit2)))
+ (sourcehut-url (lambda (repository-url _ commit2)
+ (string-append
+ (if (string-suffix? ".git" repository-url)
+ (string-drop-right repository-url 4)
+ repository-url)
+ "/log/?from=" commit2))))
`(("git.savannah.gnu.org"
,(lambda (repository-url commit1 commit2)
(string-append (string-replace-substring repository-url
@@ -1552,7 +1560,9 @@ (define %vcs-web-commit-range-views
("git.guix.gnu.org" ,github-url) ;alias for codeberg.org
("gitlab.com" ,gitlab-url)
("gitlab.inria.fr" ,gitlab-url)
- ("github.com" ,github-url))))
+ ("github.com" ,github-url)
+ ("git.sr.ht" ,sourcehut-url)
+ ("git.guix.moe" ,github-url))))
(define* (commit-hyperlink url commit
#:optional (text commit))
--
2.52.0
@@ -1,263 +0,0 @@
From 4d8509b60d17cc5d242d0bb157beef123dd28923 Mon Sep 17 00:00:00 2001
Message-ID: <4d8509b60d17cc5d242d0bb157beef123dd28923.1769270645.git.hako@ultrarare.space>
From: Hilton Chain <hako@ultrarare.space>
Date: Sat, 23 Aug 2025 14:07:19 +0800
Subject: [PATCH] publish: Store cache in a layout identical to HTTP endpoints.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This allows serving substitutes using a file server.
Original layout:
--8<---------------cut here---------------start------------->8---
/path/to/publish/cache
├── hashes
│ ├── k0pin1y1r0vdkdbg3lwjqc52hpwjbdyb
│ └── ql2nxr2b587kjydfwivjsnhmqya957bq
└── nar
├── none
│ ├── k0pin1y1r0vdkdbg3lwjqc52hpwjbdyb-hello-2.12.2.narinfo
│ └── k0pin1y1r0vdkdbg3lwjqc52hpwjbdyb-hello-2.12.2.nar
└── zstd
├── ql2nxr2b587kjydfwivjsnhmqya957bq-helix-25.01.1.narinfo
└── ql2nxr2b587kjydfwivjsnhmqya957bq-helix-25.01.1.nar
--8<---------------cut here---------------end--------------->8---
Modified layout:
--8<---------------cut here---------------start------------->8---
/path/to/publish/cache
├── hashes
│ ├── k0pin1y1r0vdkdbg3lwjqc52hpwjbdyb
│ └── ql2nxr2b587kjydfwivjsnhmqya957bq
├── nar
│ ├── none
│ │ └── k0pin1y1r0vdkdbg3lwjqc52hpwjbdyb-hello-2.12.2
│ └── zstd
│ └── ql2nxr2b587kjydfwivjsnhmqya957bq-helix-25.01.1
├── k0pin1y1r0vdkdbg3lwjqc52hpwjbdyb.narinfo
└── ql2nxr2b587kjydfwivjsnhmqya957bq.narinfo
--8<---------------cut here---------------end--------------->8---
Change-Id: I07689f08eef23c5cd4494451678f4e1ad709f1b3
---
guix/scripts/publish.scm | 21 +++++++-----------
tests/publish.scm | 48 ++++++++++++++++++++--------------------
2 files changed, 32 insertions(+), 37 deletions(-)
diff --git a/guix/scripts/publish.scm b/guix/scripts/publish.scm
index 1143cd29cfd..24b7f40cbd7 100644
--- a/guix/scripts/publish.scm
+++ b/guix/scripts/publish.scm
@@ -47,6 +47,7 @@ (define-module (guix scripts publish)
#:use-module (guix base32)
#:use-module (guix base64)
#:use-module (guix config)
+ #:use-module (guix records)
#:use-module (gcrypt hash)
#:use-module (guix pki)
#:use-module (gcrypt pk-crypto)
@@ -306,8 +307,6 @@ (define* (store-item->recutils store-item
(let ((url (encode-and-join-uri-path
`(,@(split-and-decode-uri-path nar-path)
,@(match compression
- (($ <compression> 'none)
- '())
(($ <compression> type)
(list (symbol->string type))))
,(basename store-item)))))
@@ -424,16 +423,13 @@ (define* (render-narinfo store request hash
(define* (nar-cache-file directory item
#:key (compression %no-compression))
- (string-append directory "/"
+ (string-append directory "/nar/"
(symbol->string (compression-type compression))
- "/" (basename item) ".nar"))
+ "/" (basename item)))
(define* (narinfo-cache-file directory item
#:key (compression %no-compression))
- (string-append directory "/"
- (symbol->string (compression-type compression))
- "/" (basename item)
- ".narinfo"))
+ (string-append directory "/" (string-take (basename item) 32) ".narinfo"))
(define (hash-part-mapping-cache-file directory hash)
(string-append directory "/hashes/" hash))
@@ -533,11 +529,9 @@ (define* (render-narinfo/cached store request hash
requested using POOL."
(define (delete-entry narinfo)
;; Delete NARINFO and the corresponding nar from CACHE.
- (let* ((nar (string-append (string-drop-right narinfo
- (string-length ".narinfo"))
- ".nar"))
- (base (basename narinfo ".narinfo"))
- (hash (string-take base (string-index base #\-)))
+ (let* ((path (uri-decode (assoc-ref (call-with-input-file narinfo recutils->alist) "URL")))
+ (nar (in-vicinity (dirname narinfo) path))
+ (hash (basename narinfo ".narinfo"))
(mapping (hash-part-mapping-cache-file cache hash)))
(delete-file* narinfo)
(delete-file* nar)
@@ -1044,6 +1038,7 @@ (define (string->compression-type string)
("gzip" 'gzip)
("lzip" 'lzip)
("zstd" 'zstd)
+ ("none" 'none)
(_ #f)))
(define (effective-compression requested-type compressions)
diff --git a/tests/publish.scm b/tests/publish.scm
index 3c80c50d515..52c6f6d10c4 100644
--- a/tests/publish.scm
+++ b/tests/publish.scm
@@ -173,7 +173,7 @@ (define %gzip-magic-bytes
(canonical-sexp->string
(signed-string unsigned-info))))))
(format #f "~aSignature: 1;~a;~a
-URL: nar/~a
+URL: nar/none/~a
Compression: none
FileSize: ~a\n"
unsigned-info (gethostname) signature
@@ -223,7 +223,7 @@ (define %gzip-magic-bytes
(canonical-sexp->string
(signed-string unsigned-info))))))
(format #f "~aSignature: 1;~a;~a
-URL: nar/~a
+URL: nar/none/~a
Compression: none
FileSize: ~a~%"
unsigned-info (gethostname) signature
@@ -332,7 +332,7 @@ (define %gzip-magic-bytes
(recutils->alist body)))))
(test-equal "/*.narinfo for a compressed file"
- '("none" "nar") ;compression-less nar
+ '("none" "nar/none") ;compression-less nar
;; Assume 'guix publish -C' is already running on port 6799.
(let* ((item (add-text-to-store %store "fake.tar.gz"
"This is a fake compressed file."))
@@ -378,7 +378,7 @@ (define %gzip-magic-bytes
(test-equal "custom nar path"
;; Serve nars at /foo/bar/chbouib instead of /nar.
(list `(("StorePath" . ,%item)
- ("URL" . ,(string-append "foo/bar/chbouib/" (basename %item)))
+ ("URL" . ,(string-append "foo/bar/chbouib/none/" (basename %item)))
("Compression" . "none"))
200
404)
@@ -403,7 +403,7 @@ (define %gzip-magic-bytes
(recutils->alist body))
(response-code (http-get nar-url))
(response-code
- (http-get (string-append base "nar/" (basename %item))))))))
+ (http-get (string-append base "nar/none/" (basename %item))))))))
(test-equal "/nar/ with properly encoded '+' sign"
"Congrats!"
@@ -479,10 +479,10 @@ (define %gzip-magic-bytes
(part (store-path-hash-part %item))
(url (string-append base part ".narinfo"))
(nar-url (string-append base "nar/gzip/" (basename %item)))
- (cached (string-append cache "/gzip/" (basename %item)
+ (cached (string-append cache "/" part
".narinfo"))
- (nar (string-append cache "/gzip/"
- (basename %item) ".nar"))
+ (nar (string-append cache "/nar/gzip/"
+ (basename %item)))
(response (http-get url)))
(and (= 404 (response-code response))
@@ -535,15 +535,15 @@ (define %gzip-magic-bytes
(url (string-append base part ".narinfo"))
(nar-url (cute string-append "nar/" <> "/"
(basename %item)))
- (cached (cute string-append cache "/" <> "/"
- (basename %item) ".narinfo"))
- (nar (cute string-append cache "/" <> "/"
- (basename %item) ".nar"))
+ (cached (string-append cache "/"
+ part ".narinfo"))
+ (nar (cute string-append cache "/nar/" <> "/"
+ (basename %item)))
(response (http-get url)))
- (wait-for-file (cached "gzip"))
+ (wait-for-file cached)
(let* ((body (http-get-port url))
(narinfo (recutils->alist body))
- (uncompressed (string-append base "nar/"
+ (uncompressed (string-append base "nar/none/"
(basename %item))))
(and (file-exists? (nar "gzip"))
(file-exists? (nar "lzip"))
@@ -576,7 +576,7 @@ (define %gzip-magic-bytes
(list #t
(* 42 3600) ;TTL on narinfo
`(("StorePath" . ,item)
- ("URL" . ,(string-append "nar/" (basename item)))
+ ("URL" . ,(string-append "nar/none/" (basename item)))
("Compression" . "none"))
200 ;nar/…
(* 42 3600) ;TTL on nar/…
@@ -595,10 +595,10 @@ (define %gzip-magic-bytes
(let* ((base "http://localhost:6796/")
(part (store-path-hash-part item))
(url (string-append base part ".narinfo"))
- (cached (string-append cache "/none/"
- (basename item) ".narinfo"))
- (nar (string-append cache "/none/"
- (basename item) ".nar"))
+ (cached (string-append cache "/"
+ part ".narinfo"))
+ (nar (string-append cache "/nar/none/"
+ (basename item)))
(response (http-get url)))
(and (= 404 (response-code response))
@@ -607,7 +607,7 @@ (define %gzip-magic-bytes
(body (http-get-port url))
(compressed (http-get (string-append base "nar/gzip/"
(basename item))))
- (uncompressed (http-get (string-append base "nar/"
+ (uncompressed (http-get (string-append base "nar/none/"
(basename item))))
(narinfo (recutils->alist body)))
(list (file-exists? nar)
@@ -650,8 +650,8 @@ (define %gzip-magic-bytes
(item (add-text-to-store %store "random" (random-text)))
(part (store-path-hash-part item))
(url (string-append base part ".narinfo"))
- (cached (string-append cache "/gzip/"
- (basename item)
+ (cached (string-append cache "/"
+ part
".narinfo"))
(response (http-get url)))
(and (= 200 (response-code response)) ;we're below the threshold
@@ -676,7 +676,7 @@ (define %gzip-magic-bytes
(part (store-path-hash-part item))
(narinfo (string-append base part ".narinfo"))
(nar (string-append base "nar/gzip/" (basename item)))
- (cached (string-append cache "/gzip/" (basename item)
+ (cached (string-append cache "/" part
".narinfo")))
;; We're below the default cache bypass threshold, so NAR and NARINFO
;; should immediately return 200. The NARINFO request should trigger
@@ -712,7 +712,7 @@ (define %gzip-magic-bytes
(part (store-path-hash-part item))
(narinfo (string-append base part ".narinfo"))
(nar (string-append base "nar/gzip/" (basename item)))
- (cached (string-append cache "/gzip/" (basename item)
+ (cached (string-append cache "/" part
".narinfo")))
;; The first response used to be 500 and to terminate the daemon
;; connection as a side effect.
base-commit: 5dbab32115de3276f582bcb801fd9f88abe0d397
--
2.52.0
@@ -1,28 +1,47 @@
From 06ab33a4317d41953ad167bfabd5b5ff4e001fee Mon Sep 17 00:00:00 2001 From f1a0448e42ce876a58c01da9f5b40c4991a44b27 Mon Sep 17 00:00:00 2001
From: Hilton Chain <hako@ultrarare.space> From: Hilton Chain <hako@ultrarare.space>
Date: Wed, 29 Oct 2025 18:58:27 +0800 Date: Sat, 10 Oct 2026 09:17:00 +0800
Subject: [PATCH] Set Guix System PATH for Tailscale SSH. Subject: [PATCH] Set Guix System PATH for Tailscale SSH.
--- ---
ssh/tailssh/user.go | 4 ++-- ssh/tailssh/user_unix.go | 2 ++
1 file changed, 2 insertions(+), 2 deletions(-) version/distro/distro.go | 3 +++
2 files changed, 5 insertions(+)
diff --git a/ssh/tailssh/user.go b/ssh/tailssh/user.go diff --git a/ssh/tailssh/user_unix.go b/ssh/tailssh/user_unix.go
index ac92c762a..fccc5cbf5 100644 index eb1941886..5840f2af7 100644
--- a/ssh/tailssh/user.go --- a/ssh/tailssh/user_unix.go
+++ b/ssh/tailssh/user.go +++ b/ssh/tailssh/user_unix.go
@@ -109,9 +109,9 @@ func defaultPathForUser(u *user.User) string { @@ -92,6 +92,8 @@ func defaultPathForUser(u *user.User) string {
return "/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
case distro.NixOS:
return defaultPathForUserOnNixOS(u) return defaultPathForUserOnNixOS(u)
+ case distro.Guix:
+ return "/run/privileged/bin:/run/current-system/profile/sbin:/run/current-system/profile/bin"
} }
if isRoot { if isRoot {
- return "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" return "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+ return "/run/privileged/bin:/run/current-system/profile/sbin:/run/current-system/profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" diff --git a/version/distro/distro.go b/version/distro/distro.go
} index 5407f8dae..2a6312bf7 100644
- return "/usr/local/bin:/usr/bin:/bin" --- a/version/distro/distro.go
+ return "/run/privileged/bin:/run/current-system/profile/sbin:/run/current-system/profile/bin:/usr/local/bin:/usr/bin:/bin" +++ b/version/distro/distro.go
} @@ -34,6 +34,7 @@
Alpine = Distro("alpine")
UBNT = Distro("ubnt") // Ubiquiti Networks
JetKVM = Distro("jetkvm")
+ Guix = Distro("guix")
)
func defaultPathForUserOnNixOS(u *user.User) string { var distro lazy.SyncValue[Distro]
@@ -112,6 +113,8 @@ func linuxDistro() Distro {
return Alpine
case runtime.GOARCH == "arm" && isDeviceModel("JetKVM"):
return JetKVM
+ case have("/run/current-system/parameters"):
+ return Guix
}
return ""
}
-- --
2.51.0 2.54.0
+49
View File
@@ -0,0 +1,49 @@
;;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Copyright © 2026 Hilton Chain <hako@ultrarare.space>
(define-module (rosenthal packages shellutils)
;; Utilities
#:use-module (guix gexp)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix utils)
;; Guix origin methods
#:use-module (guix git-download)
;; Guix build systems
#:use-module (rosenthal build-system go-vendored)
;; Guix packages
#:use-module (gnu packages golang))
(define-public stinkpot
(package
(name "stinkpot")
(version "0.1.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://tangled.org/oppi.li/stinkpot")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1mnxjg3krvdgxclh4bd757p8wgvx57s9i8zyrppgwhcps1r2ifw2"))))
(build-system go-vendored-build-system)
(arguments
(list #:tests? #f ;no tests
#:go go-1.27
#:vendor-hash
(base32 "1kqmw6c2h11wxx4a683k10rzrsydc1pbq5rp3d570nk8bl5c0lr1")
#:install-source? #f
#:import-path "."
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-references
(lambda _
(substitute* "main.go"
(("stinkpot (add|search)" all)
(string-append #$output "/bin/" all))))))))
(home-page "https://tangled.org/oppi.li/stinkpot")
(synopsis "Search shell history")
(description
"@command{stinkpot} is an sqlite backed shell-history searcher.")
(license license:expat)))
+95 -121
View File
@@ -1,5 +1,6 @@
;;; SPDX-License-Identifier: GPL-3.0-or-later ;;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Copyright © 2022, 2025 Hilton Chain <hako@ultrarare.space> ;;; Copyright © 2022, 2025 Hilton Chain <hako@ultrarare.space>
;;; Copyright © 2026 Maxim Cournoyer <maxim@guixotic.coop>
(define-module (rosenthal packages web) (define-module (rosenthal packages web)
;; Utilities ;; Utilities
@@ -16,19 +17,26 @@
;; Guix build systems ;; Guix build systems
#:use-module (guix build-system cargo) #:use-module (guix build-system cargo)
#:use-module (guix build-system copy) #:use-module (guix build-system copy)
#:use-module (guix build-system gnu)
#:use-module (guix build-system go) #:use-module (guix build-system go)
#:use-module (rosenthal build-system go-vendored) #:use-module (rosenthal build-system go-vendored)
;; Guix packages ;; Guix packages
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages compression)
#:use-module (gnu packages golang) #:use-module (gnu packages golang)
#:use-module (gnu packages image) #:use-module (gnu packages image)
#:use-module (gnu packages jemalloc) #:use-module (gnu packages jemalloc)
#:use-module (gnu packages node)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages ssh)
#:use-module (gnu packages version-control) #:use-module (gnu packages version-control)
#:use-module (gnu packages web)) #:use-module (gnu packages web))
(define-public ai-robots-txt (define-public ai-robots-txt
(package (package
(name "ai-robots-txt") (name "ai-robots-txt")
(version "1.50") (version "2.1")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -37,7 +45,7 @@
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"18ahcvhicbgn30km8aph1vq3l4x09aasj0xvz3b0s0p8pkqqmw7g")) "1vfayd064mhksqyzak2qy08ydgqwfnf4jamzq25qlzqfi5fji9k4"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet '(delete-file-recursively "code")))) (snippet '(delete-file-recursively "code"))))
(build-system copy-build-system) (build-system copy-build-system)
@@ -58,80 +66,11 @@ website owners block unwanted AI crawlers from accessing their sites.")
(define-deprecated/public-alias anubis-anti-crawler anubis-ai-firewall) (define-deprecated/public-alias anubis-anti-crawler anubis-ai-firewall)
(define-public caddy
(package
(name "caddy")
(version "2.11.4")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/caddyserver/caddy")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"04ypcnmplbkmp7r5vi3q2lx270q2195c4h8ripdjc32z2qlkqff3"))))
(build-system go-vendored-build-system)
(arguments
(list #:go go-1.26
#:vendor-hash (base32 "0vjdmwp4qdxvkrn1h7pk9ckwi5cjksq7nbd96yqd2dqan4ri4v6q")
#:tests? (not (%current-target-system)) ;TODO: Run test suite.
#:install-source? #f
#:import-path
(if (string=? "caddy" (package-name this-package))
"./cmd/caddy"
".")
#:build-flags
#~(list "-tags" "nobadger nomysql nopgx"
(string-append
"-ldflags="
" -X github.com/caddyserver/caddy/v2.CustomVersion="
#$(package-version this-package)))
#:modules
(cons '(ice-9 match)
%default-go-vendored-modules)
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'install-extras
(lambda _
(let ((caddy
(or (which "caddy")
(in-vicinity #$output "bin/caddy"))))
(invoke caddy "manpage" "--directory"
(in-vicinity #$output "share/man/man8"))
(map
(match-lambda
((shell . path)
(let ((file (in-vicinity #$output path)))
(mkdir-p (dirname file))
(with-output-to-file file
(lambda ()
(invoke caddy "completion" shell))))))
'(("bash" . "etc/bash_completion.d/caddy")
("fish" . "share/fish/vendor_completions.d/caddy.fish")
("zsh" . "share/zsh/site-functions/_caddy"))))))
(delete 'check)
(add-after 'install 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(let ((caddy (in-vicinity #$output "bin/caddy")))
(invoke caddy "help")
(invoke caddy "version"))))))))
(home-page "https://caddyserver.com/")
(synopsis "Extensible HTTP web server with automatic HTTPS")
(description
"Caddy is a web server designed for simplicity and ease of use. It is
notable for its automatic HTTPS feature, which enables secure connections
without requiring complex configuration. Caddy is built with a focus on
performance and flexibility, making it suitable for a variety of applications,
from serving static websites to running dynamic web applications.")
(license license:asl2.0)))
(define-public caddy/dolly (define-public caddy/dolly
(package (package
(inherit caddy) (inherit caddy)
(name "caddy-dolly") (name "caddy-dolly")
(version "2026.06.01") (version "2026.10.23")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -140,72 +79,107 @@ from serving static websites to running dynamic web applications.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1b8606rbg57ylxz2q88335s04q8yvg6b33qkq3hk9895vwd74mq0")))) "1amgxdy9598jpm1zkp7yvrxhj3zyzlc8rzp64mivlhhv58gmnfmz"))))
(build-system go-vendored-build-system)
(arguments (arguments
(substitute-keyword-arguments arguments (substitute-keyword-arguments arguments
((#:go _ #f) go-1.27)
((#:import-path _ #f) ".")
((#:vendor-hash _ #f) ((#:vendor-hash _ #f)
(base32 "0bwpayz2yf18cycffy02iiq88cl0smljimsf0yrdzrn1l3flg37s")))) (base32 "1k45xgbay9fyahh7ng8y6n58m9nnv2wyjqwzyjf3via08mlh1cjm"))))
(native-inputs '())
(inputs '())
(propagated-inputs '())
(home-page "https://git.guix.moe/hako/caddy") (home-page "https://git.guix.moe/hako/caddy")
(properties '((disable-updater? . #t))))) (properties '((disable-updater? . #t)))))
;; https://codeberg.org/guix/guix/pulls/9006
(define-public forgejo (define-public forgejo
(package (package
(name "forgejo") (name "forgejo")
(version "14.0.4") (version "16.0.6")
;; TODO: Address npm dependencies and fetch from git. (source
(source (origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append ;; XXX: We build from the release tarball for now, which includes all
"https://codeberg.org/forgejo/forgejo/releases/download/v" ;; of the needed Go dependencies.
version "/forgejo-src-" version ".tar.gz")) ;; TODO: "Unbundle" the index.js and index.css by building them with
;; webpack. This cannot currently be done because of missing Node
;; modules.
(uri (string-append "https://codeberg.org/forgejo/forgejo/"
"releases/download/v" version
"/forgejo-src-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"0mjmns7yqhhkqc3jcg8bffs64zj4b52hy2v1lvr14pq162r6wcil")))) "0c56zxadj8rpn9xj7i3l97z2xh0w318vwrbxmb1nw071qh5krs8g"))))
(build-system go-vendored-build-system) (build-system gnu-build-system)
(outputs (list "out" "data"))
(arguments (arguments
(list #:tests? (not (%current-target-system)) ;TODO: Run test suite. (list
#:go go-1.26 #:test-target "test-backend" ;test-frontend requires npm modules
#:install-source? #f #:make-flags #~(list "TAGS=sqlite sqlite_unlock_notify") ;sqlite support
#:build-flags
#~(list (string-append
"-ldflags="
" -X main.ReleaseVersion=" #$(package-version this-package)
" -X main.Version=" #$(package-version this-package)
" -X main.ForgejoVersion=" #$(package-version this-package)
" -X forgejo.org/modules/setting.AppWorkPath=/var/lib/forgejo"
" -X forgejo.org/modules/setting.CustomPath=" #$output "/etc/forgejo"
" -X forgejo.org/modules/setting.CustomConf=/etc/forgejo/app.ini"))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'install 'rename-binary (add-after 'unpack 'patch-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "modules/git/hook_generate.go"
(("/usr/bin/env")
(search-input-file inputs "bin/env")))))
(add-after 'unpack 'set-static-root-path
(lambda _ (lambda _
(rename-file (in-vicinity #$output "bin/forgejo.org") (substitute* "modules/setting/server.go"
(in-vicinity #$output "bin/forgejo")))) (("StaticRootPath = AppWorkPath")
(add-after 'install 'install-extras (format #f "StaticRootPath = ~s" #$output:data)))))
(add-after 'unpack 'disable-problematic-tests
(lambda _ (lambda _
(mkdir-p (in-vicinity #$output "/etc/forgejo"))
(copy-file "custom/conf/app.example.ini"
(in-vicinity #$output "etc/forgejo/app.ini"))
(for-each (for-each
(lambda (dir) delete-file
(copy-recursively ;; Theses tests require internet.
dir (string-append #$output "/etc/forgejo/" dir))) '("modules/hcaptcha/hcaptcha_test.go"
'("options" "public" "templates")))) "modules/updatechecker/update_checker_test.go"
(delete 'check) "services/migrations/migrate_test.go"
(add-after 'rename-binary 'check "services/migrations/allowlist/is_migrate_allowed_test.go"
(lambda* (#:key tests? #:allow-other-keys) ;; The 'TestGetDirectorySize' test expects 8037
(when tests? ;; entries, finds 7597 for unknown reasons.
(let ((forgejo (in-vicinity #$output "bin/forgejo"))) "modules/repository/create_test.go"))))
(invoke forgejo "--help") (replace 'configure
(invoke forgejo "--version")))))))) (lambda _
(native-inputs (list git-minimal)) (setenv "CC" "gcc")
(setenv "CGO_ENABLED" "1")
(setenv "GOTOOLCHAIN" "local") ;use 'go' from Guix
(setenv "HOME" (getcwd))
(invoke "git" "init"))) ;for tests
(add-after 'install 'post-install
(lambda* (#:key inputs #:allow-other-keys)
(rename-file "go/bin/forgejo.org" "go/bin/forgejo")
(let ((forgejo (string-append #$output "/bin/forgejo")))
(install-file "go/bin/forgejo" (dirname forgejo))
(wrap-program forgejo
`("PATH" prefix
,(map (lambda (c)
(dirname
(search-input-file inputs
(string-append "bin/" c))))
'("git" "gzip" "sh" "ssh"))))
(substitute* forgejo ;avoid stripping argv[0] in wrapper
(("exec -a \"\\$\\{0##\\*/\\}\" ")
"exec ")))
;; Install data files.
(copy-recursively "options"
(string-append #$output:data "/options"))
(copy-recursively "public"
(string-append #$output:data "/public"))
(copy-recursively "templates"
(string-append #$output:data "/templates")))))))
(native-inputs (list git go-1.26 openssh node sqlite))
(inputs (list bash coreutils git gzip openssh))
(home-page "https://forgejo.org/") (home-page "https://forgejo.org/")
(synopsis "Lightweight software forge") (synopsis "Self-hosted, lightweight software forge")
(description (description
"Forgejo is a self-hosted, lightweight software forge designed to "Forgejo is a lightweight software forge that aims to be easy to self-host
facilitate collaborative software development. It is built to be easy to and maintain. It offers a rich web API for accessing its data. ALong the usual
install and maintain, making it an ideal choice for teams and organizations forge features such as issues and pull requests tracking, it also includes
looking for a reliable platform to manage their software projects.") simple software project management features like roles, scopes, and time
(license license:gpl3+) tracking to ease collaboration.")
(properties (license license:expat)
'((disable-updater? . #t))))) (properties '((disable-updater? . #t)))))
+3 -90
View File
@@ -36,98 +36,10 @@
#:use-module (gnu packages xdisorg) #:use-module (gnu packages xdisorg)
#:use-module (gnu packages xml)) #:use-module (gnu packages xml))
(define wayland-protocols-1.48
(package
(inherit wayland-protocols)
(name "wayland-protocols")
(version "1.48")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://gitlab.freedesktop.org/wayland/wayland-protocols")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"0zqnn7bwqzifchjhclrrcqnp39cpd3nnf6nbd9bav2hwhcx92mwy"))))))
;; TODO: Unbundle dependencies under the third_party directory.
(define-public noctalia
(package
(name "noctalia")
(version "5.1.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/noctalia-dev/noctalia-shell")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1zf4q6lrpb0zp3sdwlqmj1cxfhislkssya8cslj0w9y096ha3dq3"))))
(build-system meson-build-system)
(arguments
(list #:build-type "release"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'prepare-for-build
(lambda _
;; /bin/sh doesn't exist in the build environment.
(substitute* "tests/process_test.cpp"
(("/bin/(sh)" _ cmd)
(which cmd)))
;; Adjust import paths for STB headers packaged in Guix.
(substitute* (find-files "." "\\.cpp$|^meson\\.build$")
(("\\bstb/stb_") "stb_")))))))
(native-inputs
(list pkg-config))
(inputs
(list cairo
curl
fontconfig
freetype
glib
gmp
harfbuzz
jemalloc
mpfr
(librsvg-for-system)
libjxl
libical
libqalculate
libsecret
libsndfile
libsodium
libwebp
libxkbcommon
libxml2
linux-pam
md4c
mesa
nlohmann-json
pango
pipewire
polkit
sdbus-c++
stb-image-resize2
stb-image-write
tomlplusplus
wayland
wayland-protocols-1.48
wireplumber))
(home-page "https://noctalia.dev/")
(synopsis "Wayland shell and bar")
(description
"Noctalia is a lightweight Wayland shell and bar built directly on
Wayland and OpenGL ES, with no Qt or GTK dependency.")
(license license:expat)))
(define-deprecated-package noctalia-shell noctalia)
(define-public noctalia-greeter (define-public noctalia-greeter
(package (package
(name "noctalia-greeter") (name "noctalia-greeter")
(version "1.5.0") (version "1.7.0")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@@ -136,7 +48,7 @@ Wayland and OpenGL ES, with no Qt or GTK dependency.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0d8nkabqfid2fnfb0hryrl7lhgzv8ps0vjkz15hajf2ld5pf00r6")))) "1wsrmjh8mmnbsfsspn0hvpd6di9mlm20qiigxcniq5s6za74ic90"))))
(build-system meson-build-system) (build-system meson-build-system)
(arguments (arguments
(list #:build-type "release" (list #:build-type "release"
@@ -158,6 +70,7 @@ Wayland and OpenGL ES, with no Qt or GTK dependency.")
glib glib
harfbuzz harfbuzz
jemalloc jemalloc
libjxl
(librsvg-for-system) (librsvg-for-system)
libwebp libwebp
libxkbcommon libxkbcommon
+21 -13
View File
@@ -354,22 +354,36 @@
;;; ;;;
(define-configuration/no-serialization home-niri-configuration (define-configuration/no-serialization home-niri-configuration
(niri
(file-like niri)
"")
(config (config
maybe-file-like maybe-file-like
"")) ""))
(define (validated-niri-config niri file)
(computed-file "niri.kdl"
(with-imported-modules '((guix build utils))
#~(begin
(use-modules (guix build utils))
(invoke #+(file-append niri "/bin/niri") "validate"
"--config" #$file)
(copy-file #$file #$output)))))
(define %home-niri-xdg-config (define %home-niri-xdg-config
(match-record-lambda <home-niri-configuration> (match-record-lambda <home-niri-configuration>
(config) (niri config)
(if (maybe-value-set? config) (if (maybe-value-set? config)
`(("niri/config.kdl" ,config)) `(("niri/config.kdl" ,(validated-niri-config niri config)))
'()))) '())))
(define home-niri-service-type (define home-niri-service-type
(service-type (service-type
(name 'home-niri) (name 'home-niri)
(extensions (extensions
(list (service-extension home-xdg-configuration-files-service-type (list (service-extension home-profile-service-type
(compose list home-niri-configuration-niri))
(service-extension home-xdg-configuration-files-service-type
%home-niri-xdg-config))) %home-niri-xdg-config)))
(default-value (home-niri-configuration)) (default-value (home-niri-configuration))
(description (description
@@ -695,18 +709,12 @@ compositor.")))
,@(default-skeletons))) ,@(default-skeletons)))
(define %rosenthal-skeletons-installer (define %rosenthal-skeletons-installer
`((".config/noctalia/settings.json" `((".local/state/noctalia/.setup-complete"
,(local-file "../examples/dot-config/noctalia/settings.json")) ,(plain-file "empty" ""))
(".local/state/noctalia/settings.toml"
,(local-file "../examples/dot-config/noctalia/settings.toml"))
(".config/wezterm/wezterm.lua" (".config/wezterm/wezterm.lua"
,(local-file "../examples/dot-config/wezterm/wezterm.lua")) ,(local-file "../examples/dot-config/wezterm/wezterm.lua"))
;; Prevent Noctalia shell initial screen.
(".cache/noctalia/shell-state.json"
,(json-file "noctalia-shell-state.json"
#~'(("changelogState"
("lastSeenVersion"
. #$(string-append "v" (package-version noctalia-shell))))
("telemetry"
("instanceId" . "")))))
,@%rosenthal-skeletons)) ,@%rosenthal-skeletons))
+1
View File
@@ -6,6 +6,7 @@
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module (guix modules) #:use-module (guix modules)
#:use-module (guix records) #:use-module (guix records)
#:use-module (rosenthal utils file)
#:use-module (rosenthal utils predicates) #:use-module (rosenthal utils predicates)
;; Guix System ;; Guix System
#:use-module (gnu system shadow) #:use-module (gnu system shadow)
+40
View File
@@ -12,6 +12,7 @@
#:use-module (guix i18n) #:use-module (guix i18n)
#:use-module (guix records) #:use-module (guix records)
#:use-module (rosenthal utils packages) #:use-module (rosenthal utils packages)
#:use-module (rosenthal utils records)
;; Guix System - services ;; Guix System - services
#:use-module (gnu services) #:use-module (gnu services)
#:use-module (gnu services configuration) #:use-module (gnu services configuration)
@@ -20,12 +21,16 @@
;; Guix packages ;; Guix packages
#:use-module (gnu packages rust-apps) #:use-module (gnu packages rust-apps)
#:use-module (gnu packages shellutils) #:use-module (gnu packages shellutils)
#:use-module (rosenthal packages shellutils)
#:export (home-fish-plugin-atuin-service-type #:export (home-fish-plugin-atuin-service-type
home-atuin-configuration home-atuin-configuration
home-fish-plugin-direnv-service-type home-fish-plugin-direnv-service-type
home-direnv-configuration home-direnv-configuration
home-fish-plugin-stinkpot-service-type
home-stinkpot-configuration
home-fish-plugin-zoxide-service-type home-fish-plugin-zoxide-service-type
home-zoxide-configuration)) home-zoxide-configuration))
@@ -108,6 +113,41 @@ end\n"))))))
(define-deprecated/public-alias home-direnv-service-type (define-deprecated/public-alias home-direnv-service-type
home-fish-plugin-direnv-service-type) home-fish-plugin-direnv-service-type)
;;;
;;; stinkpot
;;;
(define-record-type/dolly <home-stinkpot-configuration>
home-stinkpot-configuration
make-home-stinkpot-configuration
home-stinkpot-configuration?
this-home-stinkpot-configuration
(stinkpot
home-stinkpot-configuration-stinkpot
(default stinkpot)
(contract file-like?)))
(define home-stinkpot-fish-service
(match-record-lambda/dolly <home-stinkpot-configuration>
(stinkpot)
(home-fish-extension
(config
(list (mixed-text-file "stinkpot.fish" "\
status is-interactive
and begin
" stinkpot "/bin/stinkpot init fish | source
end\n"))))))
(define home-fish-plugin-stinkpot-service-type
(service-type
(name 'home-stinkpot)
(extensions
(list (service-extension home-fish-service-type
home-stinkpot-fish-service)))
(default-value (home-stinkpot-configuration))
(description "Set up @command{stinkpot} for Fish shell.")))
;;; ;;;
;;; zoxide ;;; zoxide
+43 -32
View File
@@ -6,6 +6,7 @@
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module (guix modules) #:use-module (guix modules)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix profiles)
#:use-module (guix records) #:use-module (guix records)
#:use-module (rosenthal utils contract combinators) #:use-module (rosenthal utils contract combinators)
#:use-module (rosenthal utils file) #:use-module (rosenthal utils file)
@@ -231,45 +232,59 @@
(define forgejo-activation (define forgejo-activation
#~(begin #~(begin
(use-modules (guix build utils)) (use-modules (srfi srfi-26))
(let ((user (getpwnam "forgejo"))) (for-each (cute mkdir-p/perms <> (getpwnam "forgejo") #o750)
(for-each '("/var/lib/forgejo" "/var/log/forgejo"))))
(lambda (dir)
(mkdir-p dir)
(chown dir (passwd:uid user) (passwd:gid user))
(chmod dir #o750))
'("/var/lib/forgejo" "/var/log/forgejo")))))
(define forgejo-shepherd-service (define forgejo-shepherd-service
(match-record-lambda <forgejo-configuration> (match-record-lambda <forgejo-configuration>
(forgejo config) (forgejo git-packages config)
(let ((config-file (let ((config-file
(if (file-config? config) (if (file-config? config)
(ini-file "forgejo.ini" config) (ini-file "forgejo.ini" config)
config))) config))
(list (shepherd-service (git-profile
(profile
(name "forgejo-git-profile")
(content (packages->manifest git-packages)))))
(list
(shepherd-service
(documentation "Run Forgejo.") (documentation "Run Forgejo.")
(provision '(forgejo)) (provision '(forgejo))
(requirement '(loopback postgresql)) (requirement '(user-processes postgresql loopback))
(start (start
#~(make-forkexec-constructor #~(lambda _
(list "/run/current-system/profile/bin/forgejo" (define (forgejo-run . options)
"--config" #$config-file) (let ((command
#:user "forgejo" (cons* #$(file-append forgejo "/bin/forgejo")
"--config" #$config-file
options))
(args
(list #:user "forgejo"
#:group "forgejo" #:group "forgejo"
#:log-file "/var/log/forgejo.log" #:log-file
(if (null? options)
"/var/log/forgejo.log"
"/var/log/forgejo-init.log")
#:environment-variables #:environment-variables
'("GIT_EXEC_PATH=/run/current-system/profile/libexec/git-core" (list "HOME=/var/lib/forgejo"
"GIT_SSL_CAINFO=/run/current-system/profile/etc/ssl/certs/ca-certificates.crt" "SSL_CERT_DIR=/etc/ssl/certs"
"HOME=/var/lib/forgejo" "SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt"
"PATH=/run/current-system/profile/bin" "GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt"
"SSL_CERT_DIR=/run/current-system/profile/etc/ssl/certs" (format #f "GIT_EXEC_PATH=~a/libexec/git-core" #$git-profile)
"SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt") (format #f "PATH=/run/current-system/profile/bin:~a/bin" #$git-profile))
#:resource-limits '((nofile 524288 524288)))) #:resource-limits '((nofile 524288 524288)))))
(stop (if (null? options)
#~(make-kill-destructor)) (apply fork+exec-command command args)
(actions (unless (zero? (apply spawn-command command args))
(list (shepherd-configuration-action config-file)))))))) (error "failed to run forgejo command" command)))))
(forgejo-run "migrate")
(forgejo-run "admin" "regenerate" "hooks")
(forgejo-run "admin" "regenerate" "keys")
(forgejo-run "doctor" "check" "--all")
(forgejo-run)))
(stop #~(make-kill-destructor))
(actions (list (shepherd-configuration-action config-file))))))))
(define forgejo-service-type (define forgejo-service-type
(service-type (service-type
@@ -279,10 +294,6 @@
forgejo-account) forgejo-account)
(service-extension postgresql-role-service-type (service-extension postgresql-role-service-type
forgejo-postgresql-role) forgejo-postgresql-role)
(service-extension profile-service-type
(lambda (config)
(cons (forgejo-configuration-forgejo config)
(forgejo-configuration-git-packages config))))
(service-extension activation-service-type (service-extension activation-service-type
(const forgejo-activation)) (const forgejo-activation))
(service-extension shepherd-root-service-type (service-extension shepherd-root-service-type
@@ -109,15 +109,18 @@ combinator names have a ‘/c’ suffix.
(unless (procedure? val) (unless (procedure? val)
(raise-blame-error blame #:missing-party neg-party (raise-blame-error blame #:missing-party neg-party
'(expected: "a procedure" got: "~s") val)) '(expected: "a procedure" got: "~s") val))
(lambda args (match (procedure-minimum-arity val)
;; XXX: Can't check procedure arity in Guile. ((required optional rest?)
(let ((arity (length args))) (unless (= required contract-arity)
(unless (= arity contract-arity)
(raise-blame-error (raise-blame-error
(blame-swap blame) #:missing-party neg-party blame #:missing-party neg-party
`("assuming arity of the contract is always correct" `(expected: "a procedure that accepts ~a non-keyword argument(s)"
expected: "~a argument(s)" got: "~a argument(s)") got: "~a~%"
contract-arity arity))) "which accepts ~a argument(s)")
contract-arity
val
required))))
(lambda args
(define args* (define args*
(map (lambda (arg blame enforcer) (map (lambda (arg blame enforcer)
((enforcer blame) arg neg-party)) ((enforcer blame) arg neg-party))
+11 -7
View File
@@ -15,10 +15,13 @@
#:use-module (guix build-system trivial) #:use-module (guix build-system trivial)
;; Guix packages ;; Guix packages
#:autoload (gnu packages package-management) (nix) #:autoload (gnu packages package-management) (nix)
#:export (%nix-wrapper-default-exclude-env-paths #:export (;; Paramaters.
%nix-wrapper-default-exclude-env-paths
%nix-wrapper-profile-nixpkgs-commit %nix-wrapper-profile-nixpkgs-commit
%nix-wrapper-profile-extra-outputs %nix-wrapper-profile-extra-outputs
%nix-wrapper-shell-default-unset-env-vars
nix-shell-wrapper nix-shell-wrapper
nix-wrapper->package nix-shell-wrapper->package nix-wrapper->package nix-shell-wrapper->package
with-nix-profile)) with-nix-profile))
@@ -69,14 +72,15 @@
(_ (list #f))) (_ (list #f)))
(%nix-wrapper-default-exclude-env-paths)))) (%nix-wrapper-default-exclude-env-paths))))
(define (%nix-wrapper-shell-default-unset-env-vars) ;; Environment variables to unset in the `nix shell' environment, used by
"Environment variables to unset in the `nix shell' environment, used by ;; `nix-shell-wrapper' by default.
`nix-shell-wrapper' by default." (define-syntax %nix-wrapper-shell-default-unset-env-vars
(identifier-syntax
(filter-map (match-lambda (filter-map (match-lambda
((? string? env) env) ((? string? env) env)
(((? string? env) . _) env) (((? string? env) . _) env)
(_ #f)) (_ #f))
(%nix-wrapper-default-exclude-env-paths))) (%nix-wrapper-default-exclude-env-paths))))
;;; ;;;
@@ -275,7 +279,7 @@ in
(run-command '()) (run-command '())
(options '()) (options '())
(environment-keep #t) (environment-keep #t)
(environment-unset (%nix-wrapper-shell-default-unset-env-vars)) (environment-unset %nix-wrapper-shell-default-unset-env-vars)
(environment-set '()) (environment-set '())
(nix (file-append nix "/bin/nix"))) (nix (file-append nix "/bin/nix")))
"Return a nix-wrapper that wraps the `nix shell' command-line utility and "Return a nix-wrapper that wraps the `nix shell' command-line utility and
@@ -298,7 +302,7 @@ When ENVIRONMENT-KEEP (default: #t, boolean / list of strings) is set to a value
other than #t, the environment will be cleared, keeping only specified other than #t, the environment will be cleared, keeping only specified
environment variables. environment variables.
ENVIRONMENT-UNSET (default: (%nix-wrapper-shell-default-unset-env-vars), list of ENVIRONMENT-UNSET (default: %nix-wrapper-shell-default-unset-env-vars, list of
strings) unsets specified environment variables from the environment. It's only strings) unsets specified environment variables from the environment. It's only
usable when ENVIRONMENT-KEEP is #t. usable when ENVIRONMENT-KEEP is #t.
+124
View File
@@ -0,0 +1,124 @@
;;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Copyright © 2026 Hilton Chain <hako@ultrarare.space>
(define-module (rosenthal utils others)
#:use-module (guix gexp)
#:use-module (rosenthal utils file)
#:use-module (gnu packages admin)
#:use-module (gnu packages base)
#:use-module (gnu packages compression)
#:use-module (gnu packages curl)
#:use-module (gnu packages file)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages lsof)
#:use-module (gnu packages ncdu)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages password-utils)
#:use-module (gnu packages rsync)
#:use-module (gnu packages rust-apps)
#:use-module (gnu packages ssh)
#:use-module (gnu packages sync)
#:use-module (gnu packages version-control)
#:use-module (gnu packages vim)
#:export (%rosenthal-guix-key-dorphine
%rosenthal-guix-key-nuporta
%rosenthal-guix-key-bocis
%rosenthal-guix-key-ignamma
%rosenthal-ssh-key-hako
%rosenthal-ssh-key-hako-deploy
%rosenthal-ssh-key-jonathan
%rosenthal-ssh-key-podiki
%rosenthal-network-manager-ipv6-privacy
%rosenthal-network-manager-random-mac-address
%rosenthal-cli-packages))
;;;
;;; Guix public keys
;;;
(define %rosenthal-guix-key-dorphine
(plain-file "dorphine.pub"
"(public-key (ecc (curve Ed25519)
(q #A279175682D0DAE3E11268E67E1F3FA47C38D7E509F7725567CF891E248E719F#)))"))
;; Nonguix head node.
(define %rosenthal-guix-key-nuporta
(plain-file "nuporta.pub"
"(public-key (ecc (curve Ed25519)
(q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)))"))
;; aarch64-linux build worker.
(define %rosenthal-guix-key-bocis
(plain-file "bocis.pub"
"(public-key (ecc (curve Ed25519)
(q #7927EA1162184C1FAA62D20C111121A4604F00956E69F0FEB89EEE1721647897#)))"))
;; x86_64-linux + aarch64-linux build worker.
(define %rosenthal-guix-key-ignamma
(plain-file "ignamma.pub"
"(public-key (ecc (curve Ed25519)
(q #6FEEB15C4363F9975EB15C908EC911A4362E486DA642431FA2438C0B1C3D55F5#)))"))
;;;
;;; SSH public keys
;;;
(define %rosenthal-ssh-key-hako
(plain-file "hako.pub"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFcTj1N3cL/bh2Uvwh5/YubhZplPFnvGk/iVHQs3FWV2 openpgp:0x77671915\n"))
(define %rosenthal-ssh-key-hako-deploy
(plain-file "hako-deploy.pub"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMLWIp8y5/JGBaw+yFA5MFB5nlFpEx/tjc0q0Ij9KjTu\n"))
(define %rosenthal-ssh-key-jonathan
(plain-file "jonathan.pub"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgzHvP3BRTIZ960LVglrK8w/C0+6Z5VM8/Q5Uwa0o+Z jonathan@3700X\n"))
(define %rosenthal-ssh-key-podiki
(plain-file "podiki.pub"
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDaSmW/3uq5L6ZP6gWmRw5RiTTg0es1PrbAo/x4vkPzwIKTrMFOCBCmcuH3vOCkEZJtNy3OpXbt/a3tDW+cc6dkeq2H4WpogQvyMTXreFS2phMgDTEXW2gGZIP6fA33CHERmhd9A/m0A+NH5KGAmLDQNK8QgPgIjZuseJYtYHNCnN2TCsWQYnbZtVQF5CS6iBUILpVp6p7QlSUokiCGaPjZfrjSFCm1hUPjJYSkv0NTq8TzyDfU2quqP7TBCj4WBi9HoW9+a8tN2TQ/+GYbGqlFljeNdz3vzItcHjidHOQL/42mpvzgZx7o7dtrqX9stp+mI3oBREYSD0bMyvND/dEBRWIbpFvbyYx/leMKq9yUcFNyI2lztk17ObaQkDLxlq4ClytgEtdbP6X0gua29FYK/YlAi13NptK6uy2xB2gsEIt5P4N3u+gZCNA0U3IVd7iMRSpg6PWiL1JguvhYSD5vGOnOjiXVlBCKn+ErTO9Ey/BZqwVBZMeDwynFnU1mYnkxtA+G54VI77gj24FrHw/ClOdJOdBUGAso9P3sFjdykkAJyKd4jiFzpDTOOJNs8qKhmFFzJBnJjn7nzwjElwOCZXdDKTrKqF/51WEqpNr8Za2QjRirV4m7n6FnyyD38b24InAVa+yze3qDI9yk2vjPdtFGCeLODSEjfV3U1z1hiw== cardno:11 465 639\n"))
;;;
;;; NetworkManager
;;;
(define %rosenthal-network-manager-ipv6-privacy
`("ip6-privacy.conf"
,(ini-file "ip6-privacy.conf"
'(("connection"
. (("ipv6.ip6-privacy" . 2)))))))
;; NOTE: When using on cloud machines, refer to the terms of the provider
;; first.
(define %rosenthal-network-manager-random-mac-address
`("random-mac-address.conf"
,(ini-file "random-mac-address.conf"
'(("connection-mac-randomization"
. (("ethernet.cloned-mac-address" . "stable")
("wifi.cloned-mac-address" . "stable")))))))
;;;
;;; Packages
;;;
(define %rosenthal-cli-packages
(list curl
file
git
`(,git "send-email")
glibc
gnupg
htop
mosh
ncurses
rclone
rsync
unzip
zip))
+18 -1
View File
@@ -23,7 +23,9 @@
#:use-module (gnu packages base) #:use-module (gnu packages base)
#:replace (%patch-path #:replace (%patch-path
search-patch) search-patch)
#:export (rosenthal-patches #:export (sri-hash
rosenthal-patches
%rosenthal-package-module-path %rosenthal-package-module-path
all-rosenthal-packages all-rosenthal-packages
@@ -39,6 +41,20 @@
binary-package binary-package
mapping-for-system)) mapping-for-system))
(define-syntax sri-hash
(lambda (stx)
(syntax-case stx ()
((_ str)
(let ((str (syntax->datum #'str)))
(and (string? str)
(string-index str #\-)))
(let* ((str (syntax->datum #'str))
(dash (string-index str #\-))
(algo (substring str 0 dash))
(hash (substring str (1+ dash))))
(with-syntax ((algorithm (datum->syntax #'stx (string->symbol algo))))
#`(content-hash (base64 #,hash) algorithm)))))))
(define %rosenthal-root-directory (define %rosenthal-root-directory
;; This is like %distro-root-directory from (gnu packages), with adjusted ;; This is like %distro-root-directory from (gnu packages), with adjusted
;; paths. ;; paths.
@@ -166,6 +182,7 @@ packages, excluding superseded packages."
(define* (binary-package source-mapping p #:optional (default-system "x86_64-linux")) (define* (binary-package source-mapping p #:optional (default-system "x86_64-linux"))
(package (package
(inherit p) (inherit p)
(location (package-location p))
(version (package-version (assoc-ref source-mapping default-system))) (version (package-version (assoc-ref source-mapping default-system)))
(source #f) (source #f)
(arguments (arguments
+36 -3
View File
@@ -7,11 +7,44 @@
#:use-module (srfi srfi-1) #:use-module (srfi srfi-1)
#:use-module (srfi srfi-35) #:use-module (srfi srfi-35)
;; Utilities ;; Utilities
#:use-module (guix diagnostics) #:use-module (guix discovery)
#:use-module (guix i18n) #:use-module (guix ui)
;; Guix System - services ;; Guix System - services
#:use-module (gnu services) #:use-module (gnu services)
#:export (modify-services/by-name)) #:export (%rosenthal-service-module-path
all-rosenthal-services
modify-services/by-name))
(define %rosenthal-root-directory
;; This is like %distro-root-directory from (gnu packages), with adjusted
;; paths.
(letrec-syntax ((dirname* (syntax-rules ()
((_ file)
(dirname file))
((_ file head tail ...)
(dirname (dirname* file tail ...)))))
(try (syntax-rules ()
((_ (file things ...) rest ...)
(match (search-path %load-path file)
(#f
(try rest ...))
(absolute
(dirname* absolute things ...))))
((_)
#f))))
(try ("rosenthal/packages/binaries.scm" rosenthal/ packages/)
("rosenthal/packages.scm" rosenthal/))))
(define %rosenthal-service-module-path
`((,%rosenthal-root-directory . "rosenthal/services")
(,%rosenthal-root-directory . "rosenthal/home/services")))
(define (all-rosenthal-services)
(fold-service-types cons
'()
(all-modules %rosenthal-service-module-path
#:warn warn-about-load-error)))
;;; ;;;
+6 -3
View File
@@ -1,8 +1,11 @@
#!/bin/sh #!/bin/sh
load_path="$(dirname "$(realpath "$0")")/modules" TOP_DIR="$(dirname "$(realpath "$0")")"
modules="$TOP_DIR/modules"
scripts="$TOP_DIR/etc/scripts"
export GUILE_LOAD_PATH="${load_path}${GUILE_LOAD_PATH:+:}${GUILE_LOAD_PATH}" export GUILE_LOAD_PATH="${modules}${GUILE_LOAD_PATH:+:}${GUILE_LOAD_PATH}"
export GUIX_PACKAGE_PATH="${load_path}${GUIX_PACKAGE_PATH:+:}${GUIX_PACKAGE_PATH}" export GUIX_PACKAGE_PATH="${modules}${GUIX_PACKAGE_PATH:+:}${GUIX_PACKAGE_PATH}"
export PATH="${scripts}${PATH:+:}${PATH}"
exec "$@" exec "$@"