Compare commits

..
605 Commits
Author SHA1 Message Date
Hilton Chain 879f4aef54 services: cloudflare-tunnel: Support token file.
* modules/rosenthal/services/child-error.scm
(cloudflare-tunnel-configuration)[token-file]: New field.
(cloudflare-tunnel-shepherd-service): Adjust accordingly.
2025-05-15 02:02:17 +08:00
Hilton Chain f851cdabfc rosenthal: cloudflared: Update to 2025.4.2.
* modules/rosenthal/packages/networking.scm (cloudflared): Update to 2025.4.2.
2025-05-15 02:02:00 +08:00
Hilton Chain 36eeac3b85 rosenthal: Update cargo-inputs implementation.
* modules/rosenthal/packages/rust-crates.scm: Update implementation.
Export interfaces ‘lookup-cargo-inputs’ and ‘rosenthal-cargo-inputs’.
* modules/rosenthal/packages/rust-apps.scm (atuin)[inputs]: Use
‘rosenthal-cargo-inputs’.
Remove rust-ring-0.17.
* modules/rosenthal/packages/wm.scm (rust-pipewire, rust-smithay): Hide and
export.
[arguments]<#:phases>: Update ‘package’ phase.
[inputs]: Use ‘rosenthal-cargo-inputs’.
(niri)[arguments]<#:phases>: Apply updates from rust-team.
[inputs]: Use ‘rosenthal-cargo-inputs’.
Remove rust-pipewire and rust-smithay.
* modules/rosenthal/packages/xorg.scm (xwayland-satellite)[inputs]: Use
‘rosenthal-cargo-inputs’.
2025-05-04 20:31:07 +08:00
Hilton Chain 9c782fad3c maint: Relocate modules to ‘modules’ directory. 2025-04-26 00:16:07 +08:00
Hilton Chain b917cd6d36 maint: Update etc/manifest.
* etc/manifest: Update.
2025-04-22 09:19:07 +08:00
Hilton Chain b3b3c423ce rosenthal: wakatime-cli-bin: Update to 1.115.1.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.115.1.
2025-04-22 09:17:25 +08:00
Hilton Chain ca3b30132c rosenthal: wakapi-bin: Update to 2.13.3.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.13.3.
2025-04-22 09:17:25 +08:00
Hilton Chain bcb6a4cc71 rosenthal: sing-box-bin: Update to 1.11.8.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.11.8.
2025-04-22 09:17:25 +08:00
Hilton Chain ad1918171b rosenthal: mihomo-bin: Update to 1.19.5.
* rosenthal/packages/binaries.scm (mihomo-bin): Update to 1.19.5.
2025-04-22 09:17:23 +08:00
Hilton Chain 2531f04148 rosenthal: cloudflared: Update to 2025.4.0.
* rosenthal/packages/networking.scm (cloudflared): Update to 2025.4.0.
2025-04-19 01:32:13 +08:00
Hilton Chain a3beed8bfa rosenthal: atuin: Correct license.
* rosenthal/packages/rust-apps.scm (atuin)[license]: Correct to expat.
2025-04-07 13:49:47 +08:00
Hilton Chain 387f07d970 rosenthal: Add tailscale.
* rosenthal/packages/networking.scm (tailscale): New variable.
* rosenthal/packages/binaries.scm (tailscale-bin): Deprecated by it.
* rosenthal/services/networking.scm (tailscale-configuration)[tailscale]: Use
it.
2025-04-03 00:58:25 +08:00
Hilton Chain fc947d3e1f rosenthal: Add hugo.
* rosenthal/packages/web.scm (hugo): New variable.
* rosenthal/packages/binaries.scm (hugo-bin): Deprecated by it.
2025-04-03 00:55:13 +08:00
Hilton Chain d87c76525a utils: Add go-vendored-fetch.
* rosenthal/utils/download.scm: New file.
2025-04-03 00:54:03 +08:00
Hilton Chain e2f1327b3b maint: Fix README markup.
* README.org: Fix markup.
2025-04-02 14:20:20 +08:00
Hilton Chain 64e467e461 maint: Update README.org.
* README.org: Update.
2025-04-02 12:29:57 +08:00
Hilton Chain df6044bef2 rosenthal: forgejo: Update to 10.0.3.
* rosenthal/packages/web.scm (forgejo): Update to 10.0.3.
2025-04-02 10:26:12 +08:00
Hilton Chain 27319d9666 rosenthal: tailscale-bin: Update to 1.82.0.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.82.0.
2025-04-02 10:25:44 +08:00
Hilton Chain 86f3cfc083 rosenthal: sing-box-bin: Update to 1.11.6.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.11.6.
2025-04-02 10:25:22 +08:00
Hilton Chain 4831a71081 rosenthal: sidebery-icecat: Update to 5.3.3.7.
* rosenthal/packages/binaries.scm (sidebery): Update to 5.3.3.7.
2025-04-02 10:24:58 +08:00
Hilton Chain e1a6098158 rosenthal: cloudflare-warp-bin: Update to 2025.2.600.0.
* rosenthal/packages/binaries.scm (cloudflare-warp-bin): Update to 2025.2.600.0.
2025-04-02 10:24:31 +08:00
Hilton Chain 136eccd475 rosenthal: mihomo-bin: Update to 1.19.4.
* rosenthal/packages/binaries.scm (mihomo-bin): Update to 1.19.4.
2025-04-02 10:24:14 +08:00
Hilton Chain b11982494a rosenthal: bitwarden-icecat: Update to 2025.3.1.
* rosenthal/packages/binaries.scm (bitwarden): Update to 2025.3.1.
2025-04-02 10:23:49 +08:00
Hilton Chain 55e4d889a6 rosenthal: xwayland-satellite: Disable tests.
* rosenthal/packages/xorg.scm (xwayland-satellite)[arguments]<#:tests?>:
Disable.
2025-04-01 16:56:03 +08:00
Hilton Chain fbcf6a1d7d services: Add home-keyboard-service-type from RDE.
* rosenthal/services/keyboard.scm: New file.
2025-04-01 15:28:41 +08:00
Hilton Chain 5172fac369 rosenthal: tailscale-bin: Update to 1.80.3.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.80.3.
2025-03-12 22:07:30 +08:00
Hilton Chain e661f2788d rosenthal: bitwarden-icecat: Update to 2025.2.2.
* rosenthal/packages/binaries.scm (bitwarden): Update to 2025.2.2.
2025-03-12 22:06:54 +08:00
Hilton Chain 0436e37f39 rosenthal: wakapi-bin: Update to 2.13.1.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.13.1.
2025-03-12 22:01:19 +08:00
Hilton Chain cdb50050c5 rosenthal: sing-box-bin: Update to 1.11.5.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.11.5.
2025-03-12 22:00:34 +08:00
Hilton Chain d698802385 rosenthal: komga-bin: Update to 1.21.2.
* rosenthal/packages/binaries.scm (komga-bin): 1.21.2.
2025-03-12 22:00:05 +08:00
Hilton Chain 39ea4c7b4d rosenthal: mihomo-bin: Update to 1.19.3.
* rosenthal/packages/binaries.scm (mihomo-bin): Update to 1.19.3.
2025-03-12 21:59:44 +08:00
Hilton Chain 3c08ac7178 rosenthal: pam-dumb-runtime-dir: Add source file name.
* rosenthal/packages/admin.scm (pam-dumb-runtime-dir)[source]: Add file name.
2025-03-12 16:17:47 +08:00
Hilton Chain 8a00800a57 rosenthal: niri: Patch .desktop file.
* rosenthal/packages/wm.scm (niri)[arguments]<#:phases>: Patch .desktop file.
2025-03-12 16:17:07 +08:00
Hilton Chain 6db17fbcbe rosenthal: Add xwayland-satellite.
* rosenthal/packages/rust-crates.scm (xwayland-satellite-cargo-inputs): New variable.
* rosenthal/packages/xorg.scm (xwayland-satellite): New variable.
* README.org (Packages): Add it.
2025-03-08 15:25:00 +08:00
Hilton Chain 3ff5734c9e rosenthal: Move niri to (rosenthal packages wm).
* rosenthal/packages/rust-crates.scm: Update crates for importer change.
* rosenthal/packages/patches/atuin-disable-failing-tests.patch: Delete file.
* rosenthal/packages/patches/niri.patch: Delete file.
* rosenthal/packages/patches/rust-libspa-sys.patch: Delete file.
* rosenthal/packages/patches/rust-libspa.patch: Delete file.
* rosenthal/packages/patches/rust-pipewire.patch: Delete file.
* rosenthal/packages/patches/rust-smithay.patch: Delete file.
* rosenthal/packages/rust-apps.scm (atuin)[inputs]: Add rust-ring-0.17.
(niri): Move to ...
* rosenthal/packages/wm.scm (niri): ...here.
(rust-pipewire,rust-smithay): New variables.
2025-03-06 15:54:55 +08:00
Hilton Chain fb123e8840 rosenthal: sidebery-icecat: Update to 5.3.2.4.
* rosenthal/packages/binaries.scm (sidebery): Update to 5.3.2.4.
2025-03-01 14:08:06 +08:00
Hilton Chain f6feed951a rosenthal: bitwarden-icecat: Update to 2025.2.1.
* rosenthal/packages/binaries.scm (bitwarden): Update to 2025.2.1.
2025-03-01 14:07:23 +08:00
Hilton Chain 13171a0367 rosenthal: cloudflared: Update to 2025.2.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2025.2.1.
2025-03-01 14:02:45 +08:00
Hilton Chain f7671489fe rosenthal: cloudflare-warp-bin: Update to 2025.1.861.0.
* rosenthal/packages/binaries.scm (cloudflare-warp-bin): Update to 2025.1.861.0.
2025-03-01 14:02:25 +08:00
Hilton Chain 4b5e6520d9 import: Support partial target versions.
Adjust for upstream commit f13f0769688493271f43f31a016957355dbecb30.

* guix/import/rosenthal-updaters.scm (cloudflare-warp-import): New
 #:partial-version? argument.
2025-03-01 13:59:54 +08:00
Hilton Chain df8f268abb rosenthal: wakapi-bin: Update to 2.13.0.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 2.13.0.
2025-03-01 13:54:56 +08:00
Hilton Chain 2c4a9784f4 rosenthal: sing-box-bin: Update to 1.11.4.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.11.4.
2025-03-01 13:54:28 +08:00
Hilton Chain 4b9d1af9a7 rosenthal: komga-bin: Update to 1.20.0.
* rosenthal/packages/binaries.scm (komga-bin): Update to 1.20.0.
2025-03-01 13:54:04 +08:00
Hilton Chain b45a505f97 rosenthal: hugo-bin: Update to 0.145.0.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.145.0.
2025-03-01 13:53:46 +08:00
Hilton Chain 5ce3ca6da3 rosenthal: dnsmasq-china-list: Update to 0-18.6601f38.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to 0-18.6601f38.
2025-03-01 13:50:25 +08:00
Hilton Chain 3da3fa1eee rosenthal: atuin: Enable tests.
I forgot to remove this...

* rosenthal/packages/rust-apps.scm (atuin)[arguments]: Unset #:tests?.
2025-02-27 00:28:35 +08:00
Hilton Chain d197f3b2c6 rosenthal: atuin: Reference ‘atuin’ exectuable by store path.
* rosenthal/packages/rust-apps.scm (atuin)[arguments]<#:phases>: Add
'patch-references.
2025-02-27 00:19:11 +08:00
Hilton Chain f8c9cd9dcc rosenthal: Add niri.
* rosenthal/packages/patches/niri.patch: New file.
* rosenthal/packages/patches/rust-libspa-sys.patch: New file.
* rosenthal/packages/patches/rust-libspa.patch: New file.
* rosenthal/packages/patches/rust-pipewire.patch: New file.
* rosenthal/packages/patches/rust-smithay.patch: New file.
* rosenthal/packages/rust-crates.scm (niri-cargo-inputs): New variable.
* rosenthal/packages/rust-apps.scm (niri): New variable.
* README.org (Packages): Add it.
* etc/manifest: Add it.
2025-02-26 21:33:15 +08:00
Hilton Chain 891eb84b38 rosenthal: Add atuin.
* rosenthal/packages.scm: New file.
* rosenthal/packages/patches/atuin-disable-failing-tests.patch: New file.
* rosenthal/packages/rust-crates.scm (atuin-cargo-inputs): New variable.
* rosenthal/packages/rust-apps.scm (atuin): New variable.
* rosenthal/packages/binaries.scm (atuin-bin): Deprecated by atuin.
* README.org (Packages): Update.
* etc/manifest: Update.
2025-02-26 21:25:11 +08:00
Hilton Chain 8ab2595528 rosenthal: sing-box-bin: Update to 1.11.3.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.11.3.
2025-02-15 23:43:09 +08:00
Hilton Chain 8f9d27482f rosenthal: forgejo: Update to 10.0.1.
* rosenthal/packages/web.scm (forgejo): Update to 10.0.1.
2025-02-15 19:39:13 +08:00
Hilton Chain 501a99b2aa rosenthal: sidebery: Update to 5.3.1.7.
* rosenthal/packages/binaries.scm (sidebery): Update to 5.3.1.7.
2025-02-15 19:37:41 +08:00
Hilton Chain a4bc613b0c services: Add dumb-runtime-dir-service-type.
* rosenthal/services/file-systems.scm (dumb-runtime-dir-activation)
(dumb-runtime-dir-pam-service,dumb-runtime-dir-service-type): New variables.
* README.org (Services): Add it.
2025-02-13 20:11:24 +08:00
Hilton Chain 2d776b7195 rosenthal: Add pam-dumb-runtime-dir.
* rosenthal/packages/admin.scm (pam-dumb-runtime-dir): New variable.
* README.org (Packages): Add it.
2025-02-13 20:09:47 +08:00
Hilton Chain 35dabaf755 rosenthal: cloudflared: Update to 2025.2.0.
* rosenthal/packages/networking.scm (cloudflared):
2025-02-10 00:27:23 +08:00
Hilton Chain 535a30ac16 rosenthal: tailscale-bin: Update to 1.80.0.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.80.0.
2025-02-10 00:27:23 +08:00
Hilton Chain a08553c499 rosenthal: sing-box-bin: Update to 1.11.1.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.11.1.
2025-02-10 00:27:23 +08:00
Hilton Chain 77af19880f rosenthal: komga-bin: Update to 1.19.1.
* rosenthal/packages/binaries.scm (komga-bin): Update to 1.19.1.
2025-02-10 00:27:23 +08:00
Hilton Chain fcdd81ee92 rosenthal: hugo-bin: Update to 0.143.1.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.143.1.
2025-02-10 00:27:23 +08:00
Hilton Chain f613b22761 rosenthal: mihomo-bin: Update to 1.19.2.
* rosenthal/packages/binaries.scm (mihomo-bin): Update to 1.19.2.
2025-02-10 00:27:23 +08:00
Hilton Chain 2d941782ff rosenthal: Add bitwarden-icecat.
* rosenthal/packages/binaries.scm (bitwarden,bitwarden/icecat): New variables.
* README.org (Packages): Add it.
* etc/manifest: Add it.
2025-02-10 00:27:00 +08:00
Hilton Chain b46e9132f3 services: Add komga-service-type.
* rosenthal/services/web.scm (<komga-configuration>): New data type.
(%komga-accounts,komga-shepherd-service,komga-service-type): New variables.
* README.org (Services): Add komga-service-type.
2025-01-23 23:33:13 +08:00
Hilton Chain 18758a8415 rosenthal: Add komga-bin.
* rosenthal/packages/binaries.scm (komga-bin): New package.
* README.org (Packages): Add it.
* etc/manifest: Add it.
2025-01-23 23:33:12 +08:00
Hilton Chain 9dbc67579d rosenthal: cloudflared: Update to 2025.1.0.
* rosenthal/packages/networking.scm (cloudflared): Update to 2025.1.0.
2025-01-21 18:45:33 +08:00
Hilton Chain 891d09e2e9 rosenthal: wakatime-cli-bin: Update to 1.112.1.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.112.1.
2025-01-21 18:45:08 +08:00
Hilton Chain 707841ba58 rosenthal: sing-box-bin: Update to 1.10.7.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.10.7.
2025-01-21 18:44:48 +08:00
Hilton Chain 9b0e1b2bae rosenthal: hugo-bin: Update to 0.141.0.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.141.0.
2025-01-21 18:44:32 +08:00
Hilton Chain f199bf4c13 rosenthal: mihomo-bin: Update to 1.19.1.
* rosenthal/packages/binaries.scm (mihomo-bin): Update to 1.19.1.
2025-01-21 18:44:21 +08:00
Hilton Chain 4ec9e07cc9 rosenthal: Add package manifest.
* etc/manifest: New file.
2025-01-21 18:42:58 +08:00
Hilton Chain 7a6a28e872 services: forgejo: Allow SSH login.
* rosenthal/services/web.scm (%forgejo-accounts): All SSH login.
2025-01-19 23:45:48 +08:00
Hilton Chain 42cfb096d4 services: Add forgejo-service-type. 2025-01-19 23:29:00 +08:00
Hilton Chain a643e97280 rosenthal: Add forgejo.
* rosenthal/packages/web.scm (forgejo): New variable.
* README.org (Packages): Add it.
2025-01-19 21:04:49 +08:00
Hilton Chain de4f93a300 rosenthal: Add missing licenses. 2025-01-19 15:39:42 +08:00
Hilton Chain dd5d17c654 rosenthal: License compliance with REUSE.
$ reuse lint
 # SUMMARY

 * Bad licenses: 0
 * Deprecated licenses: 0
 * Licenses without file extension: 0
 * Missing licenses: 0
 * Unused licenses: 0
 * Used licenses: GPL-3.0-or-later, CC0-1.0
 * Read errors: 0
 * Files with copyright information: 25 / 25
 * Files with license information: 25 / 25

 Congratulations! Your project is compliant with version 3.3 of the REUSE Specification :-)
2025-01-19 15:36:03 +08:00
Hilton Chain 157db5d7ff import: %cloudflare-warp-updater: Use recutils->alist.
* guix/import/rosenthal-updaters.scm (cloudflare-warp-import): Use
recutils->alist.
2025-01-17 14:11:07 +08:00
Hilton Chain 3384f38b2b services: Adapt to log rotation change.
* rosenthal/services/child-error.scm (clash-log-rotations)
(cloudflare-tunnel-log-rotations): Delete procedure.
(clash-service-type,cloudflare-tunnel-service-type)[extensions]: Extend
log-rotation-service-type.
* rosenthal/services/mail.scm (docker-mailserver-log-rotations): Delete
procedure.
(docker-mailserver-service-type)[extensions]: Extend
log-rotation-service-type.
* rosenthal/services/networking.scm (iwd-log-rotations)
(tailscale-log-rotations): Delete procedures.
(iwd-service-type,tailscale-service-type)[extensions]: Extend
log-rotation-service-type.
* rosenthal/services/web.scm (jellyfin-log-rotations,misskey-log-rotations)
(vaultwarden-log-rotations): Delete procedures.
(jellyfin-service-type,misskey-service-type,vaultwarden-service-type)[extensions]:
Extend log-rotation-service-type.
2025-01-17 13:58:24 +08:00
Hilton Chain 0b26a4bf0e rosenthal: Add dinit.
* rosenthal/packages/admin.scm (dinit): New variable.
* README.org (Packages): Add it.
2025-01-12 20:27:53 +08:00
Hilton Chain c7689a56a2 rosenthal: cloudflared: Update to 2024.12.2.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.12.2.
2024-12-30 19:27:37 +08:00
Hilton Chain 4ef2eb9ad1 import: Add %cloudflare-warp-updater.
* guix/import/rosenthal-updaters.scm: New file.
2024-12-29 16:25:26 +08:00
Hilton Chain a59d496c74 rosenthal: wakatime-cli-bin: Update to 1.107.0.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.107.0.
[properties]: Add upstream-name.
2024-12-29 16:21:07 +08:00
Hilton Chain c35a935163 rosenthal: wakapi-bin: Update to 2.12.3.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.12.3.
[properties]: Add upstream-name.
2024-12-29 16:20:38 +08:00
Hilton Chain dc184aa9fd rosenthal: tailscale-bin: Update to 1.78.1.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.78.1.
[properties]: Add release-monitoring-url and upstream-name.
2024-12-29 16:19:56 +08:00
Hilton Chain d5b1236487 rosenthal: sing-box-bin: Update to 1.10.5.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.10.5.
[properties]: Add upstream-name.
2024-12-29 16:19:22 +08:00
Hilton Chain c30bf61086 rosenthal: shadow-tls-bin: Add upstream-name.
* rosenthal/packages/binaries.scm (shadow-tls-bin)[properties]: Add
upstream-name.
2024-12-29 16:18:53 +08:00
Hilton Chain 6945a72a17 rosenthal: hugo-bin: Update to 0.140.1.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.140.1.
[properties]: Add upstream-name.
2024-12-29 16:18:39 +08:00
Hilton Chain 9b280ab3c4 rosenthal: cloudflare-warp-bin: Update to 2024.12.554.0.
* rosenthal/packages/binaries.scm (cloudflare-warp-bin): Update to
2024.12.554.0.
[properties]: Add upstream-name and release-monitoring-url.
2024-12-29 16:17:58 +08:00
Hilton Chain 7c2d02c6e7 rosenthal: mihomo-bin: Update to 1.19.0.
* rosenthal/packages/binaries.scm (mihomo-bin): Update to 1.19.0.
[properties]: Add upstream-name.
2024-12-29 16:15:11 +08:00
Hilton Chain c73748e9d2 rosenthal: atuin-bin: Update to 18.4.0.
* rosenthal/packages/binaries.scm (atuin-bin): Update to 18.4.0.
[properties]: Add upstream-name.
2024-12-29 16:14:27 +08:00
Hilton Chain c7986b5d58 rosenthal: Add sidebery-icecat.
* rosenthal/packages/binaries.scm (sidebery,sidebery/icecat): New variables.
2024-12-12 14:21:02 +08:00
Hilton Chain 79f92602d6 rosenthal: Add miniflux-injector-icecat.
* rosenthal/packages/binaries.scm (miniflux-injector,miniflux-injector/icecat):
New variables.
2024-12-12 14:13:02 +08:00
Hilton Chain f559aee629 NEWS: Hyprland upstreamed.
* NEWS: Add entry for Hyprland removal.
2024-12-08 16:07:23 +08:00
Hilton Chain 162defb838 rosenthal: Remove hyprland packages.
* rosenthal/packages/wm.scm (udis86-for-hyprland,aquamarine,grimblast)
(hyprcursor,hyprland,hyprland-protocols,hyprlang,hyprpicker,hyprutils)
(hyprwayland-scanner,xdg-desktop-portal-hyprland): Delete variables.
* README.org (Packages / 軟件包): Update.
2024-12-08 15:56:21 +08:00
Hilton Chain 342349de15 rosenthal: cloudflared: Update to 2024.11.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.11.1.
2024-12-02 12:23:42 +08:00
Hilton Chain 5cb609ce31 rosenthal: tailscale-bin: Update to 1.76.6.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.76.6.
2024-12-02 12:23:42 +08:00
Hilton Chain a072092d6f Update README.org.
* README.org (Services / 服務): Add docker-mailserver-service-type.
2024-12-02 12:23:42 +08:00
Hilton Chain 04ad9e3b30 services: Add docker-mailserver-service-type.
* rosenthal/services/mail.scm: New file.
2024-12-01 23:31:57 +08:00
Hilton Chain d219e6e520 rosenthal: wm: Adjust for mesa-updates merge.
* rosenthal/packages/wm.scm (aquamarine)[inputs]:
Replace libinput-minimal-for-hyprland with libinput-minimal.
Replace wayland-protocols-next with wayland-protocols.
(hyprland)[inputs]:
Replace libinput-minimal-for-hyprland with libinput-minimal.
Replace wayland-for-hyprland with wayland.
Replace wayland-protocols-next with wayland-protocols.
(hyprpicker)[inputs]: Replace wayland-protocols-next with wayland-protocols.
(libinput-minimal-for-hyprland,wayland-for-hyprland): Delete variables.
2024-11-06 07:32:22 +08:00
Hilton Chain 61f7bbcdf5 rosenthal: wayland-for-hyprland: Export variable.
As reported in <https://github.com/rakino/Rosenthal/issues/15> , the
inconsistency between wayland versions may cause issue on hyprland.

This commit exports ‘wayland-for-hyprland’, a newer version of "wayland"
package used by hyprland in rosenthal, so that affected users can install it
as a workaround.

* rosenthal/packages/wm.scm (wayland-for-hyprland): Export variable.
2024-11-05 14:21:24 +08:00
Hilton Chain f45687f13b rosenthal: Add atuin-bin.
* rosenthal/packages/binaries.scm (atuin-bin): New variable.
* README.org (Binary Packages): Add it.
2024-11-02 21:45:18 +08:00
Hilton Chain c2a899bd7d README: Update packages and services.
* README.org (Packages,Services): Update.
2024-11-02 11:53:34 +08:00
Hilton Chain 7d9214d18e rosenthal: hyprland: Update to 0.44.1.
* rosenthal/packages/wm.scm (libinput-minimal-for-hyprland,wayland-for-hyprland)
(aquamarine,hyprpicker,hyprutils): New variables.
(grimblast): Update to grimblast-0.1-1.9d67858.
(hyprcursor): Update to 0.1.9.
(hyprland): Update to 0.44.1.
(hyprland-protocols): Update to 0.4.0.
(hyprlang): Update to 0.5.3.
(hyprwayland-scanner): Update to 0.4.2.
(xdg-desktop-portal-hyprland): Update to 1.3.6.
(cairo-for-hyprland,hwdata-for-hyprland,libdrm-for-hyprland)
(hyprland-unbundle-wlroots-patch,wayland-protocols-for-hyprland)
(wlroots-for-hyprland): Delete variables.
2024-10-31 16:46:36 +08:00
Hilton Chain 38e2be2728 rosenthal: wlroots-for-hyprland: Remove non-existent reference.
* rosenthal/packages/wm.scm (wlroots-for-hyprland)[propagated-inputs]: Remove
reference to libinput-minimal-1.24.0.
2024-10-31 14:38:33 +08:00
Hilton Chain 97b9e2436a rosenthal: Remove libinput-minimal-1.24.0. [upstreamed]
* rosenthal/packages/freedesktop.scm (libinput-minimal-1.24.0): Delete variable.
2024-10-31 14:19:57 +08:00
Hilton Chain e52520cbaa rosenthal: dnsmasq-china-list: Update to 0-17.8c4858a.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to 0-17.8c4858a.
2024-10-31 14:19:00 +08:00
Hilton Chain 2eb66f8bad rosenthal: wakatime-cli-bin: Update to 1.102.4.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.102.4.
2024-10-31 14:16:56 +08:00
Hilton Chain 2888e95b2a rosenthal: wakapi-bin: Update to 2.12.1.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.12.1.
2024-10-31 14:16:08 +08:00
Hilton Chain afe3c41f96 rosenthal: sing-box-bin: Update to 1.10.1.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.10.1.
2024-10-31 14:14:35 +08:00
Hilton Chain 2cbf87a1b5 rosenthal: hugo-bin: Update to 0.136.5.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.136.5.
2024-10-31 14:06:29 +08:00
Hilton Chain 7e970f49e4 rosenthal: cloudflared: Update to 2024.10.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.10.1.
2024-10-31 14:01:37 +08:00
Hilton Chain ad9f05d5da rosenthal: tailscale-bin: Update to 1.76.1.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.76.1.
2024-10-31 14:00:37 +08:00
Hilton Chain 966d4ac483 rosenthal: cloudflare-warp-bin: Update to 2024.9.346.0.
* rosenthal/packages/binaries.scm (cloudflare-warp-bin): Update to
2024.9.346.0.
[arguments]<#:phases>: Simplify 'unpack-deb phase.
2024-10-31 13:58:41 +08:00
Hilton Chain fb0a73108e services: clash: Run as root.
Process name related matching is only available to root user.
This commit also changes the default clash implementation to mihomo.

* rosenthal/services/child-error.scm (clash-configuration)
[clash]: Use mihomo-bin.
(%clash-accounts): Remove user account "clash".
(clash-activation): Don't change directory owner.
(clash-shepherd-service)[start]<#:user>: Remove.
2024-10-31 13:50:43 +08:00
Hilton Chain bcf1b0c464 services: jellyfin: Add auto-start? option.
* rosenthal/services/web.scm (jellyfin-configuration)[auto-start?]: New field.
(jellyfin-oci-containers)[auto-start?]: Use it.
2024-10-31 13:49:14 +08:00
Hilton Chain b5f9128798 services: tailscale: Change back socket path.
Modified by accident.

* rosenthal/services/networking.scm (tailscale-configuration)[socket]: Change
back socket path.
2024-10-31 13:41:44 +08:00
Hilton Chain e4b84dfa2c services: jellyfin: Allow gexps in extra-options.
* rosenthal/services/web.scm (jellyfin-configuration)[extra-options]: Change
type to list.
2024-10-11 09:37:14 +08:00
Hilton Chain 1014d146c0 rosenthal: hugo-bin: Update to 0.135.0.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.135.0.
[native-inputs]: Replace patchelf to its 0.16 version.
2024-10-10 16:30:37 +08:00
Hilton Chain 64f925e075 rosenthal: cloudflare-warp-bin: Use patchelf 0.16.
* rosenthal/packages/binaries.scm (cloudflare-warp-bin)
[native-inputs]: Replace patchelf with its 0.16 version.
2024-10-10 16:29:25 +08:00
Hilton Chain 1deb97ada4 services: Add jellyfin-service-type.
* rosenthal/services/web.scm (jellyfin-configuration): New data type.
(jellyfin-log-rotations,jellyfin-activation,jellyfin-oci-containers): New
procedures.
(%jellyfin-accounts,jellyfin-service-type): New variables.
2024-10-05 21:58:14 +08:00
Hilton Chain fa1bcd5018 services: cloudflare-warp: Don't log stdout.
* rosenthal/services/child-error.scm (cloudflare-warp-shepherd-service)
[start]<#:log-file>: Set to "/dev/null".
2024-10-05 21:54:34 +08:00
Hilton Chain 21ba2f200f services: Add home-qbittorrent-service-type.
* rosenthal/services/bittorrent.scm (home-qbittorrent-activation)
(home-qbittorrent-shepherd-service,home-qbittorrent-service-type): New
variables.
2024-10-04 20:24:07 +08:00
Hilton Chain bd6508000e services: Add misskey-service-type.
* rosenthal/services/web.scm (misskey-configuration): New data type.
(misskey-service-type): New variable.
2024-10-03 16:55:25 +08:00
Hilton Chain a367c5c974 services: Add vaultwarden-service-type.
* rosenthal/services/web.scm (vaultwarden-configuration): New data type.
(vaultwarden-activation,vaultwarden-oci-containers): New procedures.
(%vaultwarden-accounts,%vaultwarden-postgresql-role,vaultwarden-service-type):
New variables.
2024-10-02 20:50:47 +08:00
Hilton Chain 7409288c70 services: tailscale: Reduce configuration fields.
* rosenthal/services/networking.scm (tailscale-configuration)
[extra-options]: New field.
[iptables]: Switch to iptables-nft.
[socket]: Move to /run.
[bird-socket,debug-server,port,http-proxy-server,socks5-server,state-file]
[tunnel-interface]: Remove fields.
(tailscale-shepherd-service): Adjust accordingly.
2024-10-02 20:42:52 +08:00
Hilton Chain 1d40787105 services: miniflux: Support proxy.
* rosenthal/services/child-error.scm (miniflux-configuration)[proxy-url]: New
field.
(miniflux-shepherd-service): Fix miniflux path.
Adjust accordingly.
2024-10-02 20:41:04 +08:00
Hilton Chain f42f8e258b services: cloudflare-tunnel: Reduce configuration fields.
* rosenthal/services/child-error.scm (cloudflare-tunnel-configuration)
[metrics,http2-origin?,post-quantum?]: Remove fields.
(cloudflare-tunnel-shepherd-service): Adjust accordingly.
2024-10-02 20:39:05 +08:00
Hilton Chain f9dc2afc50 rosenthal: cloudflared: Update to 2024.9.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.9.1.
[arguments]<#:go>: Use go-1.23.
2024-10-02 20:37:09 +08:00
Hilton Chain 82619c24fe rosenthal: tailscale-bin: Update to 1.74.1.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.74.1.
2024-10-02 20:36:36 +08:00
Hilton Chain 81d1a87938 rosenthal: mihomo-bin: Update to 1.18.9.
* rosenthal/packages/binaries.scm (mihomo-bin): Update to 1.18.9.
2024-10-02 20:36:10 +08:00
Hilton Chain 4c0e2a3166 rosenthal: wakatime-cli-bin: Update to 1.98.3.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.98.3.
2024-08-23 19:51:50 +08:00
Hilton Chain 58d385b258 rosenthal: wakapi-bin: Update to 2.11.2.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.11.2.
2024-08-23 19:51:23 +08:00
Hilton Chain 94a2591d70 rosenthal: tailscale-bin: Update to 1.72.1.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.72.1.
2024-08-23 19:50:57 +08:00
Hilton Chain 8a32229ee0 rosenthal: sing-box-bin: Update to 1.9.4.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.9.4.
2024-08-23 19:50:45 +08:00
Hilton Chain 7ca7964b79 rosenthal: hugo-bin: Update to 0.133.0.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.133.0.
2024-08-23 19:49:48 +08:00
Hilton Chain 2315a3cd5f rosenthal: cloudflare-warp-bin: Update to 2024.6.497.
* rosenthal/packages/binaries.scm (cloudflare-warp-bin): Update to 2024.6.497.
[inputs]: Add nspr, nss.
[arguments]<#:phases>: Patch their paths in.
2024-08-23 19:48:28 +08:00
Hilton Chain 277ddb85fa rosenthal: mihomo: Update to 1.18.7.
* rosenthal/packages/binaries.scm (mihomo): Update to 1.18.7.
2024-08-23 19:47:56 +08:00
Hilton Chain f031e3cb29 rosenthal: cloudflared: Update to 2024.8.3.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.8.3.
2024-08-23 18:05:14 +08:00
Hilton Chain a73d01c657 rosenthal: emacs-wakatime-mode: Update to 1.0.2-60.1c5b225.
* rosenthal/packages/emacs-xyz.scm (emacs-wakatime-mode): Update to
1.0.2-60.1c5b225.
2024-08-23 18:04:32 +08:00
Hilton Chain 764c01831d rosenthal: dnsmasq-china-list: Update to 0-16.a460349.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to 0-16.a460349.
2024-08-23 18:03:31 +08:00
Thanos Apollo ca386c52be rosenthal: Add emacs-pcmpl-tailscale.
* rosenthal/packages/emacs-xyz.scm (emacs-pcmpl-tailscale): New variable.

Modified-by: Hilton Chain <hako@ultrarare.space>
2024-07-16 23:54:15 +08:00
Hilton Chain 517b8c15a2 rosenthal: cloudflared: Update to 2024.7.0.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.7.0.
2024-07-16 23:46:55 +08:00
Hilton Chain ef4bf83d65 rosenthal: sing-box-bin: Update to 1.9.3.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.9.3.
2024-07-12 16:18:18 +08:00
Hilton Chain 02535ef82c rosenthal: cloudflared: Update to 2024.6.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.6.1.
2024-07-12 16:15:45 +08:00
Hilton Chain eeea0186f9 rosenthal: tailscale-bin: Update to 1.68.2.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.68.2.
2024-07-12 16:12:11 +08:00
Hilton Chain 7217382971 rosenthal: hugo-bin: Update to 0.128.2.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.128.2.
2024-07-12 16:05:31 +08:00
Hilton Chain fb9b069154 rosenthal: grub-efi-luks2: Update patches for GRUB 2.12.
* rosenthal/packages/bootloaders.scm (grub-luks2-argon2-support-patch): Update
for GRUB 2.12.
(grub-runtime-memregion-alloc-patch,grub-install-luks2-fix-patch): Delete
variables.
(grub-efi-luks2)[source]<patches>: Remove them.
2024-07-12 16:02:11 +08:00
Hilton Chain 8ca24e4559 rosenthal: hyprland: Update to 0.40.0.
* rosenthal/packages/wm.scm (hyprland): Update to 0.40.0.
[native-inputs]: Add hyprwayland-scanner.
(hyprland-unbundle-wlroots-patch): Update patch.
(wlroots-for-hyprland): Update to 0.18.0-dev-hyprland-1.5c1d51c.
2024-05-23 11:22:32 +08:00
Hilton Chain f8f12cd8ba rosenthal: Add hyprwayland-scanner.
* rosenthal/packages/wm.scm (hyprwayland-scanner): New variable.
2024-05-23 11:22:07 +08:00
Hilton Chain 40a7a02e3e rosenthal: wayland-protocols-for-hyprland: Update to 1.36.
* rosenthal/packages/wm.scm (wayland-protocols-for-hyprland): Update to 1.36.
2024-05-23 11:21:29 +08:00
Hilton Chain 0c81e2e430 rosenthal: hugo-bin: Update to 0.126.1.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.126.1.
2024-05-23 10:03:40 +08:00
Hilton Chain 0f6d2fad45 rosenthal: cloudflared: Update to 2024.5.0.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.5.0.
2024-05-23 10:01:25 +08:00
Hilton Chain 2a5957880e rosenthal: tailscale-bin: Update to 1.66.4.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.66.4.
2024-05-23 09:58:32 +08:00
Hilton Chain cf00c09e23 rosenthal: cloudflared: Update to 2024.4.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.4.1.
2024-05-10 22:08:16 +08:00
Hilton Chain d42e3a531c rosenthal: hugo-bin: Update to 0.125.7.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.125.7.
2024-05-10 22:06:02 +08:00
Hilton Chain 35c7ec3d5f rosenthal: tailscale-bin: Update to 1.66.1.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.66.1.
2024-05-10 22:03:58 +08:00
Hilton Chain a2b89574ff .guix-authorizations: Remove the revoked key.
* .guix-authorizations: Remove the revoked key.
2024-05-10 21:59:15 +08:00
Hilton Chain a28767296f rosenthal: cloudflared: Update to 2024.4.0.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.4.0.
2024-04-20 09:44:13 +08:00
Hilton Chain 63fe2d3dfb rosenthal: hyprland: Update to 0.39.1.
* rosenthal/packages/wm.scm (hyprland): Update to 0.39.1.
(hyprland-unbundle-wlroots-patch): Update patch.
(wlroots-for-hyprland): Update to 0.18.0-dev-hyprland-0.611a4f2.
2024-04-20 09:40:51 +08:00
Hilton Chain 3097fc1888 rosenthal: hyprcursor: Update to 0.1.7.
* rosenthal/packages/wm.scm (hyprcursor): Update to 0.1.7.
[inputs]: Add tomlplusplus.
2024-04-20 09:40:16 +08:00
Hilton Chain d2ef9be9e2 rosenthal: wlroots-for-hyprland: Switch to Hyprland fork.
* rosenthal/packages/wm.scm (wlroots-for-hyprland)[source]: Switch to Hyprland
fork.
2024-04-20 07:59:53 +08:00
Hilton Chain dd4e21f1d0 rosenthal: tailscale-bin: Update to 1.64.0.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.64.0.
2024-04-20 07:43:04 +08:00
Hilton Chain 72839719d4 rosenthal: hugo-bin: Update to 0.125.1.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.125.1.
2024-04-20 07:38:53 +08:00
lucy 32aeafcd6b rosenthal: hyprland: Update to 0.38.1.
* rosenthal/packages/wm.scm (hyprland): Update to 0.38.1.
2024-04-13 12:26:11 +08:00
Hilton Chain f49fdfe799 rosenthal: tailscale-bin: Update to 1.62.1.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.62.1.
2024-03-28 10:15:21 +08:00
Hilton Chain c202ed2037 services: Add btrbk-service-type.
* rosenthal/services/file-systems.scm: New file.
(<btrbk-configuration>): New data type.
(btrbk-etc-service,btrbk-mcron-jobs): New procedures.
(btrbk-service-type): New variable.
2024-03-28 08:42:58 +08:00
Hilton Chain 06eb07b022 bootloader: grub: Add grub-efi-luks2-removable-bootloader.
* rosenthal/bootloader/grub.scm (grub-efi-luks2-removable-bootloader): New
variable.
2024-03-25 22:01:03 +08:00
Hilton Chain 8db5f08afd rosenthal: tailscale-bin: Update to 1.62.0.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.62.0.
2024-03-24 23:33:11 +08:00
Ryan Schanzenbacher 2c967e048f rosenthal: xdg-desktop-portal-hyprland: Wrap QT_PLUGIN_PATH.
* rosenthal/packages/wm.scm (xdg-desktop-portal-hyprland):
[build-system]: Switch to qt-build-system.
[arguments]<#:qtbase>: Use qtbase.
[inputs]: Add qtwayland.
Remove qtbase-5.
2024-03-24 17:45:58 +08:00
Hilton Chain a233498094 rosenthal: hyprland: Update to 0.37.1.
* rosenthal/packages/wm.scm (hyprland-unbundle-wlroots-patch): Update patch.
(wlroots-for-hyprland): Update to 0.17.0-255.50eae51.
(hyprland): Update to 0.37.1.
[inputs]: Add hyprcursor.
2024-03-24 17:08:11 +08:00
Hilton Chain 21dd77b5bb rosenthal: Add hyprcursor.
* rosenthal/packages/wm.scm (hyprcursor): New variable.
2024-03-24 17:07:54 +08:00
Hilton Chain 187aca7883 rosenthal: Add wayland-protocols-for-hyprland.
* rosenthal/packages/wm.scm (wayland-protocols-for-hyprland): New variable.
2024-03-23 13:20:38 +08:00
Hilton Chain 5b3388f59c rosenthal: hyprlang: Update to 0.5.0.
* rosenthal/packages/wm.scm (hyprlang): Update to 0.5.0.
2024-03-23 13:09:32 +08:00
Hilton Chain 828e3cf99e rosenthal: sing-box-bin: Update to 1.8.9.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.8.9.
2024-03-23 12:42:32 +08:00
Hilton Chain 4c6496f269 rosenthal: cloudflared: Update to 2024.3.0.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.3.0.
2024-03-23 12:40:20 +08:00
Hilton Chain d27d9217f2 rosenthal: hugo-bin: Update to 0.124.1.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.124.1.
2024-03-23 12:38:37 +08:00
Hilton Chain b6f31cd035 rosenthal: hugo-bin: Update to 0.123.6.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.123.6.
2024-02-29 13:32:00 +08:00
Hilton Chain 0e31205d73 rosenthal: hyprland: Update to 0.36.0.
* rosenthal/packages/wm.scm (hyprland-unbundle-wlroots-patch): Update patch.
(hyprland): Update to 0.36.0.
[arguments]<#:phases>: Patch addr2line path.
[inputs]: Add hyprlang.
2024-02-28 22:02:26 +08:00
Hilton Chain a9f3f17922 rosenthal: hyprlang: Update to 0.4.1.
* rosenthal/packages/wm.scm (hyprlang): Update to 0.4.1.
2024-02-28 22:01:18 +08:00
Hilton Chain a158d18681 rosenthal: cloudflared: Update to 2024.2.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.2.1.
2024-02-27 13:14:25 +08:00
Hilton Chain 1cffca962d rosenthal: dnsmasq-china-list: Update to 0-15.5550ed5.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to 0-15.5550ed5.
2024-02-27 13:11:02 +08:00
Hilton Chain c408907454 rosenthal: sing-box-bin: Update to 1.8.6.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.8.6.
2024-02-27 13:08:27 +08:00
Hilton Chain 1ce1e67bc2 rosenthal: hugo-bin: Update to 0.123.4.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.123.4.
2024-02-27 13:06:31 +08:00
Hilton Chain 2fa86ce45a bootloader: grub-efi-luks2-bootloader: Keep the 'grub-efi name.
* rosenthal/bootloader/grub.scm (grub-efi-luks2-bootloader)[name]: Use grub-efi.
2024-02-20 13:13:37 +08:00
Hilton Chain 2ea774f9ed rosenthal: Remove libdisplay-info-for-hyprland.
* rosenthal/packages/wm.scm (libdisplay-info-for-hyprland): Delete variable.
(wlroots-for-hyprland)[propagated-inputs]: Use libdisplay-info in Guix.
2024-02-19 13:39:03 +08:00
Hilton Chain 8e379d1d94 rosenthal: wakatime-cli-bin: Update to 1.90.0.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.90.0.
2024-02-18 20:04:25 +08:00
Hilton Chain 731e01de85 rosenthal: cloudflared: Update to 2024.2.0.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.2.0.
2024-02-18 20:00:44 +08:00
Hilton Chain 192d3d0ba5 rosenthal: tailscale-bin: Update to 1.60.0.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.60.0.
2024-02-18 19:55:53 +08:00
Hilton Chain 657f2055f9 rosenthal: xdg-desktop-portal-hyprland: Update to 1.3.1.
* rosenthal/packages/wm.scm (xdg-desktop-portal-hyprland): Update to 1.3.1.
[build-system]: Switch to cmake-build-system.
[inputs]: Add hyprlang.
2024-02-18 19:03:29 +08:00
Hilton Chain a079a438da rosenthal: Add hyprlang.
* rosenthal/packages/wm.scm (hyprlang): New variable.
2024-02-18 19:02:34 +08:00
Hilton Chain 23c15e0785 rosenthal: networking: Fix module import (again).
* rosenthal/packages/networking.scm: Add back (gnu packages golang).
2024-02-14 08:33:46 +08:00
Hilton Chain 9cbf42e01f rosenthal: networking: Fix module import.
go-golang-org-x-net has been moved to (gnu packages golang-build):
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=8b3daeca5545b97556b7f7f196bda6ca84e3dfa3

* rosenthal/packages/networking.scm: Fix module import.
2024-02-14 08:25:14 +08:00
Hilton Chain d29af10233 rosenthal: hyprland: Update to 0.35.0.
* rosenthal/packages/wm.scm (libdrm-for-hyprland): Update to 2.4.120.
(wlroots-for-hyprland): Update to 0.17.0-168.00b869c.
(hyprland): Update to 0.35.0.
[source]<snippet>: Remove hyprpm.
[arguments]<#:phases>: Adjust substitution.
[inputs]: Add cairo-for-hyprland, gcc-13.
2024-02-06 10:34:45 +08:00
Hilton Chain f0c3bba1ec rosenthal: Add cairo-for-hyprland.
* rosenthal/packages/wm.scm (cairo-for-hyprland): New variable.
2024-02-05 23:17:20 +08:00
Hilton Chain af9372339a Revert "rosenthal: Add pam-uaccess." [upstreamed]
This reverts commit 3d8dbdb97b.
2024-02-05 16:07:08 +08:00
Hilton Chain 7433409450 rosenthal: sing-box-bin: Update to 1.8.4.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.8.4.
2024-01-28 15:44:35 +08:00
Hilton Chain e307f037d9 rosenthal: tailscale-bin: Update to 1.58.2.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.58.2.
2024-01-28 15:41:55 +08:00
Hilton Chain c1936d42cf rosenthal: cloudflared: Update to 2024.1.5.
rosenthal/packages/networking.scm (cloudflared): Update to 2024.1.5.
2024-01-28 14:40:05 +08:00
Hilton Chain 4539e364fe rosenthal: hugo-bin: Update to 0.122.0.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.122.0.
2024-01-28 14:38:11 +08:00
Hilton Chain 98f58fc2fe rosenthal: wakapi-bin: Update to 2.10.4.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.10.4.
2024-01-28 14:35:06 +08:00
Hilton Chain 3d8dbdb97b rosenthal: Add pam-uaccess.
* rosenthal/packages/admin.scm (pam-uaccess): New variable.
2024-01-25 20:36:05 +08:00
Hilton Chain 477c3df102 rosenthal: wakapi-bin: Update to 2.10.3.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.10.3.
2024-01-21 11:56:16 +08:00
Hilton Chain f077a7aa55 rosenthal: tailscale-bin: Update to 1.58.0.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.58.0.
2024-01-21 11:54:41 +08:00
Hilton Chain b05ab57766 rosenthal: sing-box-bin: Update to 1.8.2.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.8.2.
2024-01-21 11:52:30 +08:00
Hilton Chain 2eff1e3ec2 rosenthal: cloudflared: Update to 2024.1.4.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.1.4.
2024-01-21 11:51:17 +08:00
Hilton Chain f887e0fd8a rosenthal: wakatime-cli-bin: Update to 1.88.7.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.88.7.
2024-01-21 11:48:29 +08:00
Hilton Chain a8af080932 rosenthal: clash-meta-bin: Update to 1.18.0, rename to mihomo-bin.
* rosenthal/packages/binaries.scm (clash-meta-bin): Update to 1.18.0.
Rename to…
(mihomo-bin): …this.
(clash-meta-bin): Define as deprecated package.
* rosenthal/services/child-error.scm (clash-shepherd-service): Adjust
accordingly.
2024-01-15 09:13:19 +08:00
Hilton Chain 1825c484c4 services: iwd: Remove resolvconf configuration.
* rosenthal/services/networking.scm (iwd-configuration)[resolvconf]: Remove
field.
[iwd-shepherd-service]: Adjust accordingly.
2024-01-13 21:32:50 +08:00
Hilton Chain 56a4ff8d10 rosenthal: wakatime-cli-bin: Update to 1.88.1.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.88.1.
2024-01-13 21:14:34 +08:00
Hilton Chain 2c20cd4eff services: iwd: Use default environment variables.
* rosenthal/services/networking.scm (iwd-shepherd-service)
[#:environment-variables]: Remove field.
2024-01-13 20:52:12 +08:00
Hilton Chain b5befb0b7c rosenthal: wakapi-bin: Update to 2.10.2.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.10.2.
2024-01-13 20:43:38 +08:00
Hilton Chain 10e484ab4e rosenthal: cloudflared: Update to 2024.1.2.
* rosenthal/packages/networking.scm (cloudflared): Update to 2024.1.2.
[arguments]<#:go>: Use go-1.21.
2024-01-13 20:36:11 +08:00
Hilton Chain 5df5b533ad gnu: hugo-bin: Update to 0.121.2.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.121.2.
2024-01-06 20:01:50 +08:00
Hilton Chain 3af3a15130 gnu: sing-box-bin: Update to 1.8.0.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.8.0.
2024-01-06 19:33:18 +08:00
Hilton Chain 0d789becf6 rosenthal: shadow-tls-bin: Update to 0.2.25.
* rosenthal/packages/binaries.scm (shadow-tls-bin): Update to 0.2.25.
2023-12-19 16:53:49 +08:00
Hilton Chain 934f6521d6 rosenthal: tailscale-bin: Update to 1.56.1.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.56.1.
2023-12-19 16:50:54 +08:00
Hilton Chain 1d8fa9db37 rosenthal: sing-box-bin: Update to 1.7.5.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.7.5.
2023-12-19 16:46:30 +08:00
Hilton Chain 8e2fa8cb08 rosenthal: xdg-desktop-portal-hyprland: Change license to BSD 3-Clause.
* rosenthal/packages/wm.scm (xdg-desktop-portal-hyprland)[license]: Change to
bsd-3.
2023-12-08 21:09:37 +08:00
Hilton Chain befe81a423 rosenthal: xdg-desktop-portal-hyprland: Update to 1.2.5.
* rosenthal/packages/wm.scm (xdg-desktop-portal-hyprland): Update to 1.2.5.
[arguments]<#:phases>: Adjust 'fix-path.
Remove QT Build System related phases.
<#:imported-modules,#:modules>: Remove arguments.
[native-inputs]: Add gcc-13, wayland.
Remove cmake-minimal.
[inputs]: Add hyprland, sdbus-c++.
Remove basu, libinih, util-linux:lib, wayland.
2023-12-08 20:46:00 +08:00
Hilton Chain 9ca1896dc9 rosenthal: hyprland: Update to 0.33.1.
* rosenthal/packages/wm.scm (hyprland): Update to 0.33.1.
(wlroots-for-hyprland): Update to wlroots-0.16.0-903.5d63939.
[propagated-inputs]: Add libdrm-for-hyprland.
Remove libxcb, xcb-util-renderutil.
2023-12-08 20:45:51 +08:00
Hilton Chain c90ec31fef rosenthal: Add libdrm-for-hyprland.
* rosenthal/packages/wm.scm (libdrm-for-hyprland): New variable.
2023-12-08 20:09:08 +08:00
Hilton Chain bb3538a937 services: wakapi: Add configuration action.
* rosenthal/services/child-error.scm (home-wakapi-shepherd-service)[actions]:
Add configuration action.
2023-12-08 19:44:30 +08:00
Hilton Chain 59bf0214ba rosenthal: tailscale-bin: Update to 1.54.1.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.54.1.
2023-12-08 17:39:30 +08:00
Hilton Chain c3bfcc39f6 rosenthal: wakapi-bin: Update to 2.10.0.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.10.0.
2023-12-08 17:35:10 +08:00
Hilton Chain 9343dca3cf rosenthal: hugo-bin: Update to 0.121.1.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.121.1.
2023-12-08 17:25:57 +08:00
Hilton Chain 7bfe230793 services: tailscale: Add `ip' command to PATH.
* rosenthal/services/networking.scm (tailscale-shepherd-service)
[start]<#:environment-variables>: Add iproute to PATH.
2023-12-08 17:18:04 +08:00
Hilton Chain f29a65440d rosenthal: sing-box-bin: Update to 1.7.2.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.7.2.
2023-12-08 16:05:46 +08:00
Hilton Chain 11e3fde3fe services: iwd: Change file path for configuration action.
* rosenthal/services/networking.scm (iwd-shepherd-service)
[actions]<configuration>: Change file path to /etc/iwd/main.conf.
2023-12-08 16:05:41 +08:00
Hilton Chain 1109aed83b services: iwd: Simplify configuration serialization procedure.
* rosenthal/services/networking.scm (serialize-iwd-configuration): Simplify.
2023-12-08 16:05:35 +08:00
Hilton Chain 7944d2b25c services: clash: Add configuration action.
* rosenthal/services/child-error.scm (clash-shepherd-service)[actions]: Add
configuration action.
2023-12-08 16:05:29 +08:00
Hilton Chain eda1456a74 services: qbittorrent: Add configuration action.
* rosenthal/services/bittorrent.scm (qbittorrent-shepherd-service)[actions]:
Add configuration action.
2023-12-08 16:05:24 +08:00
Hilton Chain 08c2d38b09 services: qbittorrent: Add default configuration file.
* rosenthal/services/bittorrent.scm (%qbittorrent-default-config-file):
New variable.
(qbittorrent-activation): Install it.
2023-12-08 16:05:10 +08:00
Hilton Chain 73e4ea9ae0 rosenthal: Remove empty modules.
* rosenthal/packages/flashing-tools.scm: Delete file.
* rosenthal/packages/xdisorg.scm: Likewise.
* rosenthal/packages/wm.scm: Adjust accordingly.
2023-12-08 12:56:30 +08:00
Hilton Chain 356e06bd51 services: qbittorrent: Remove log-file option.
* rosenthal/services/bittorrent.scm (qbittorrent-configuration)[log-file]:
Delete field.
(qbittorrent-activation,qbittorrent-shepherd-service): Adjust accordingly.
2023-12-08 12:56:23 +08:00
Hilton Chain df1b070693 services: clash: Rotate logs.
* rosenthal/services/child-error.scm (clash-log-rotations): New procedure.
(clash-service-type): Extend rottlog-service-type with it.
2023-12-08 12:55:55 +08:00
Hilton Chain de09e5adc6 services: cloudflare-tunnel: Rotate logs.
* rosenthal/services/child-error.scm (cloudflare-tunnel-log-rotations):
New procedure.
(cloudflare-tunnel-service-type): Extend rottlog-service-type with it.
2023-12-08 12:55:49 +08:00
Hilton Chain 95393955f1 services: iwd: Rotate logs.
* rosenthal/services/networking.scm (iwd-log-rotations): New procedure.
(iwd-service-type): Extend rottlog-service-type with it.
2023-12-08 12:55:44 +08:00
Hilton Chain bf0c5dc70b services: tailscale: Rotate logs.
* rosenthal/services/networking.scm (tailscale-log-rotations): New procedure.
(tailscale-service-type): Extend rottlog-service-type with it.
2023-12-08 12:55:33 +08:00
Hilton Chain bcde595503 rosenthal: libinput-minimal: Update to 1.24.0.
* rosenthal/packages/freedesktop.scm (libinput-minimal-1.23.0):
Update to 1.24.0.
Rename variable to ...
(libinput-minimal-1.24.0): ... this.
* rosenthal/packages/wm.scm (wlroots-for-hyprland)[propagated-inputs]: Adjust
accordingly.
2023-12-01 13:40:50 +08:00
Hilton Chain fd28e17494 rosenthal: Remove pixman-0.42.2. [upstreamed]
* rosenthal/packages/xdisorg.scm (pixman-0.42.2): Delete variable.
* rosenthal/packages/wm.scm (wlroots-for-hyprland)[propagated-inputs]: Adjust
accordingly.
2023-12-01 13:38:35 +08:00
Hilton Chain d39f8ce07a rosenthal: Remove libxkbcommon.
* rosenthal/packages/xdisorg.scm (libxkbcommon-1.5.0,libxkbcommon-minimal):
Delete variables.
2023-12-01 13:38:08 +08:00
Hilton Chain 033e890a25 rosenthal: Remove libdrm-2.4.115. [upstreamed]
* rosenthal/packages/xdisorg.scm (libdrm-2.4.115): Delete variable.
2023-12-01 13:37:51 +08:00
Hilton Chain ee4fab769b rosenthal: Remove flashrom-dev.
* rosenthal/packages/flashing-tools.scm (flashrom-dev): Delete variable.
2023-12-01 13:29:54 +08:00
Hilton Chain a3d7639ccd services: clash: Add shepherd-provision configuration.
* rosenthal/services/child-error.scm (clash-configuration): Add field
shepherd-provision.
(clash-shepherd-service): Use it.
2023-11-26 13:23:57 +08:00
Hilton Chain 1c50972d30 rosenthal: cloudflared: Adjust version use in G-expressions.
* rosenthal/packages/networking.scm (cloudflared): Replace #$version with
 #$(package-version this-package).
2023-11-23 20:09:33 +08:00
Hilton Chain f84002986f rosenthal: tree-sitter-yaml: Remove bundled binary.
* rosenthal/packages/tree-sitter.scm (tree-sitter-yaml)
[#:get-cleanup-snippet]: Remove docs directory.
2023-11-23 20:04:19 +08:00
Hilton Chain 7c331b0bb4 rosenthal: hugo-bin: Update to 0.120.4.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.120.4.
2023-11-13 22:23:10 +08:00
Hilton Chain 7445fb02e3 rosenthal: sing-box-bin: Update to 1.6.4.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.6.4.
2023-11-13 22:20:34 +08:00
Hilton Chain e83b06538e rosenthal: hyprland: Update to 0.32.3.
* rosenthal/packages/wm.scm (hyprland-unbundle-wlroots-patch): Update patch.
(hyprland): Update to 0.32.3.
(wlroots-for-hyprland): Update to 0.16.0-811.5de9e1a.
2023-11-13 22:14:50 +08:00
Hilton Chain 6cfd8be802 rosenthal: wakapi-bin: Update to 2.9.3.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.9.3.
2023-11-13 21:36:26 +08:00
Hilton Chain 16ab4f71da services: Add tailscale.
* rosenthal/services/networking.scm (tailscale-configuration): New data type.
(tailscale-shepherd-service,tailscale-service-type): New variables.
* README.org: Update.
2023-11-09 19:18:04 +08:00
Hilton Chain 417dd04e82 services: clash: Support Clash.Meta kernel.
* rosenthal/services/child-error.scm (clash-shepherd-service)[start]: Support
Clash.Meta kernel.
2023-11-03 20:33:21 +08:00
Hilton Chain 6673d31eee rosenthal: Add clash-meta-bin.
* rosenthal/packages/binaries.scm (clash-meta-bin): New variable.
2023-11-03 20:31:12 +08:00
Hilton Chain 9591b4adc9 rosenthal: hugo-bin: Update to 0.120.3.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.120.3.
2023-11-03 12:29:32 +08:00
Hilton Chain fb068ad2ef rosenthal: dnsmasq-china-list: Update to 0-14.db49c15.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to 0-14.db49c15.
2023-10-31 22:54:29 +08:00
Hilton Chain 890efd83e7 rosenthal: wakapi-bin: Update to 2.9.2.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.9.2.
2023-10-31 22:50:43 +08:00
Hilton Chain 2e0478eb72 rosenthal: cloudflared: Update to 2023.10.0.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.10.0.
2023-10-31 22:49:05 +08:00
Hilton Chain 8cf9a52584 rosenthal: cloudflare-warp-bin: Update to 2023.10.120.
* rosenthal/packages/binaries.scm (cloudflare-warp-bin): Update to 2023.10.120
[#:phases]<patch-elf>: Reference gcc:lib from inputs.
[inputs]: Add gcc:lib.
2023-10-31 22:47:52 +08:00
Hilton Chain dc908f3819 rosenthal: sing-box-bin: Update to 1.6.0.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.6.0.
2023-10-31 22:38:14 +08:00
Hilton Chain a907681d0e rosenthal: hugo-bin: Update to 0.120.1.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.120.1.
2023-10-31 22:33:31 +08:00
Hilton Chain e8f4d10e52 rosenthal: tailscale-bin: Update to 1.52.0.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.52.0.
2023-10-31 22:26:07 +08:00
Hilton Chain 46b0642ed1 rosenthal: wakatime-cli-bin: Update to 1.86.5.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.86.5.
2023-10-31 22:18:08 +08:00
Hilton Chain 2e3affd193 services: iwd: Only provision networking when configured.
* rosenthal/services/networking.scm (iwd-shepherd-service)[provision]:
Provision networking when network configuration enabled.
2023-10-28 11:48:40 +08:00
Hilton Chain d47daea1e4 rosenthal: hyprland: Update to 0.31.0.
* rosenthal/packages/wm.scm (hyprland): Update to 0.31.0.
[arguments]<#:phases>: Remove 'substitute-meson-build.
(wlroots-for-hyprland): Update to 0.16.0-751.3406c1b.
2023-10-17 09:03:44 +08:00
Hilton Chain d2342204fd gnu: wakapi-bin: Update to 2.9.1.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.9.1.
2023-10-13 21:12:31 +08:00
Hilton Chain 05aadcc245 gnu: wakatime-cli-bin: Update to 1.85.2.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.85.2.
2023-10-13 21:08:39 +08:00
Hilton Chain 71a580d429 gnu: sing-box-bin: Update to 1.5.3.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.5.3.
2023-10-13 21:01:31 +08:00
Hilton Chain 5dbef96272 services: iwd: Remove deprecated configuration field.
ap-ranges is deprecated in favor of ap-address-pool.

* rosenthal/services/networking.scm (%iwd-config-general,uglify-field-name)
(iwd-configuration): Remove ap-ranges.
2023-10-08 20:52:57 +08:00
Hilton Chain 6b1a540e24 rosenthal: sing-box-bin: Update to 1.5.1.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.5.1.
2023-10-03 13:20:42 +08:00
Hilton Chain 6eaca1aa9f rosenthal: wakatime-cli-bin: Update to 1.85.1.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.85.1.
2023-10-03 09:21:10 +08:00
Hilton Chain 67f1999817 rosenthal: tailscale-bin: Update to 1.50.1.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.50.1.
2023-10-03 09:20:11 +08:00
Hilton Chain 00c10e204c services: qbittorrent: Raise limit for maximum open file descriptors.
* rosenthal/services/bittorrent.scm (qbittorrent-shepherd-service)
[#:resource-limits]: Set nofile to 65536 65536.
2023-10-01 00:30:46 +08:00
Hilton Chain 1c7ae40607 rosenthal: sing-box-bin: Update to 1.5.0.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.5.0.
2023-09-29 20:17:22 +08:00
Hilton Chain d49f5adb51 rosenthal: hyprland: Update to 0.30.0.
* rosenthal/packages/wm.scm (hyprland-unbundle-wlroots-patch): Update patch.
(hyprland): Update to 0.30.0.
[native-inputs]: Replace gcc-12 with gcc-13.
(wlroots-for-hyprland): Update to 0.16.0-735.98a745d.
2023-09-29 09:59:37 +08:00
Hilton Chain e217e5d0b4 rosenthal: sing-box-bin: Update to 1.4.6.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.4.6.
2023-09-27 18:20:54 +08:00
Hilton Chain 47c14d4cd5 rosenthal: hugo-bin: Reference libraries from inputs.
See (guix build-system copy), `copy-build' only passes native-inputs
to #:inputs...

* rosenthal/packages/binaries.scm (hugo-bin)[#:phases]<patch-elf>: Use
`this-package-input' instead of `search-input-file'.
2023-09-26 13:17:19 +08:00
Hilton Chain 9b8194cc7f rosenthal: hugo-bin: Update to 0.119.0.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.119.0.
2023-09-26 13:06:31 +08:00
Hilton Chain 194a081a28 rosenthal: sing-box-bin: Update to 1.4.5.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.4.5.
2023-09-26 13:01:29 +08:00
Hilton Chain 628de5b81a rosenthal: tailscale-bin: Fix description.
* rosenthal/packages/binaries.scm (tailscale-bin)[description]: Mark tailscale
as code correctly.
2023-09-26 12:56:15 +08:00
Hilton Chain 6d827c6a2d rosenthal: tailscale-bin: Update to 1.50.0.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.50.0.
2023-09-26 12:55:45 +08:00
Hilton Chain 846441ba04 rosenthal: wakatime-cli-bin: Update to 1.84.0.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.84.0.
2023-09-26 12:52:59 +08:00
Hilton Chain 55bd3067f0 services: Add iwd.
* rosenthal/services/networking.scm: New file.
(%iwd-config-general,%iwd-config-network,%iwd-config-blacklist)
(%iwd-config-rank,%iwd-config-scan,%iwd-config-ipv4,%iwd-config-driver-quirks)
(iwd-shepherd-service,iwd-service-type): New variables.
(uglify-field-name,serialize-field,serialize-string,serialize-boolean,cidr4?)
(serialize-cidr4,randomization-method?,serialize-randomization-method)
(randomization-range?,serialize-randomization-range,signal-strength?)
(serialize-signal-strength,seconds?,serialize-seconds,protection-mode?)
(serialize-protection-mode,resolution-method?,serialize-resolution-method)
(serialize-integer,serialize-number,serialize-list-of-strings,list-of-cidr4?)
(serialize-list-of-cidr4,serialize-iwd-configuration,add-iwd-config)
(add-iwd-package): New procedures.
(string,cidr4,list-of-strings): New maybe values.
(iwd-configuration): New data type.
* README.org (Services): Add iwd-service-type.
2023-09-20 21:00:04 +08:00
Hilton Chain 8a3260ecb0 Revert "Import iwd-service-type from Nikita Domnitskii's dotfiles."
This reverts commit bbbdd6afec.
2023-09-18 20:59:02 +08:00
Hilton Chain 644184344d rosenthal: emacs-wakatime-mode: Adjust description.
* rosenthal/packages/emacs-xyz.scm (emacs-wakatime-mode)[version]: Inline
version.
[description]: Adjust description.
2023-09-18 19:33:57 +08:00
Hilton Chain 03b1da5d9e rosenthal: Remove extraneous imports.
* rosenthal/bootloader/grub.scm: Remove extraneous imports.
* rosenthal/packages/binaries.scm: Likewise.
* rosenthal/packages/dns.scm: Likewise.
* rosenthal/packages/emacs-xyz.scm: Likewise.
* rosenthal/packages/freedesktop.scm: Likewise.
* rosenthal/packages/networking.scm: Likewise.
* rosenthal/packages/web.scm: Likewise.
* rosenthal/packages/xdisorg.scm: Likewise.
* rosenthal/services/networking.scm: Likewise.

* rosenthal/packages/bittorrent.scm: Delete file.
* rosenthal/packages/gnome-xyz.scm: Likewise.
* rosenthal/packages/linux.scm: Likewise.
2023-09-18 19:33:20 +08:00
Hilton Chain 58ad8f96b6 rosenthal: hyprland: Update to 0.29.1.
* rosenthal/packages/wm.scm (hyprland): Update to 0.29.1.
2023-09-09 09:16:56 +08:00
Hilton Chain 5f5fa3d81d rosenthal: hugo-bin: Update to 0.118.2.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.118.2.
2023-09-02 21:51:01 +08:00
Hilton Chain 280a64270c rosenthal: cloudflared: Update to 2023.8.2.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.8.2.
2023-09-02 21:21:57 +08:00
Hilton Chain 42035556fa rosenthal: sing-box-bin: Update to 1.4.1.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.4.1.
2023-09-02 21:20:25 +08:00
Hilton Chain f0c920f5be rosenthal: wakapi-bin: Update to 2.8.2.
* rosenthal/packages/binaries.scm (wakapi-bin): Update to 2.8.2.
2023-09-02 21:11:00 +08:00
Hilton Chain d3c51cfe7a rosenthal: Remove qogir-icon-theme. [upstreamed]
* rosenthal/packages/gnome-xyz.scm (qogir-icon-theme): Delete variable.
* README.org (Packages): Adjust accordingly.
2023-08-29 23:24:37 +08:00
Hilton Chain ebb9a4e88e rosenthal: hyprland: Update to 0.29.0.
* rosenthal/packages/wm.scm (wlroots-for-hyprland): Update to
0.16.0-724.717ded9.
(hyprland-portals-patch): Delete variable.
(hyprland): Update to 0.29.0.
[source]: Switch to tarball.
2023-08-29 15:47:01 +08:00
Ryan Schanzenbacher bd96a46416 rosenthal: Add xdg-desktop-portal-hyprland
* rosenthal/packages/wm.scm (xdg-desktop-portal-hyprland): New variable.

Signed-off-by: Hilton Chain <hako@ultrarare.space>
2023-08-29 14:18:54 +08:00
Hilton Chain 8d4e983bd3 rosenthal: cloudflared: Update to 2023.8.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.8.1.
2023-08-28 16:35:01 +08:00
Hilton Chain c77c367149 rosenthal: Remove tree-sitter-cmake. [upstreamed]
* rosenthal/packages/tree-sitter.scm (tree-sitter-cmake): Delete variable.
* README.org (Packages): Remove it.
2023-08-27 12:46:54 +08:00
Hilton Chain 5e2dea2d52 gnu: tailscale-bin: Update to 1.48.1.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.48.1.
2023-08-25 19:05:31 +08:00
Hilton Chain 23376685b9 gnu: cloudflared: Update to 2023.8.0.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.8.0.
[#:go]: Switch to go-1.20.
2023-08-25 18:36:58 +08:00
Hilton Chain 3753e7ad1c services: shadow-tls: Support service-type mapping.
* rosenthal/services/child-error.scm <top level>: Use
define-service-type-mapping.
2023-08-21 16:22:22 +08:00
Hilton Chain 5b8aa7cfda rosenthal: wakatime-cli-bin: Update to 1.76.0.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.76.0.
2023-08-21 16:17:13 +08:00
Hilton Chain f8b6295e90 services: Add shadow-tls.
* rosenthal/services/child-error.scm (<shadow-tls-configuration>)
(<shadow-tls-client-configuration>,<shadow-tls-server-configuration>): New
record types.
(shadow-tls-service-type,home-shadow-tls-service-type): New variables.
* README.org (Services): Add them.
2023-08-21 10:22:03 +08:00
Hilton Chain ee0975705c rosenthal: Remove tree-sitter-dockerfile. [upstreamed]
* rosenthal/packages/tree-sitter.scm (tree-sitter-dockerfile): Delete variable.
* README.org (Packages): Remove it.
2023-08-20 23:23:29 +08:00
Hilton Chain 6d1ae3d2c0 gnu: dnsmasq-china-list: Update to 0-13.f17390d.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to 0-13.f17390d.
2023-08-20 21:34:45 +08:00
Hilton Chain 79cbe6d5a2 rosenthal: clash-bin: Update to 1.18.0.
* rosenthal/packages/binaries.scm (clash-bin): Update to 1.18.0.
2023-08-18 10:07:49 +08:00
Hilton Chain 7a6d037315 rosenthal: wakatime-cli-bin: Update to 1.75.1.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.75.1.
2023-08-18 10:05:54 +08:00
Hilton Chain f303f6b00a Update README. 2023-08-16 11:50:19 +08:00
Hilton Chain c7dc95c293 services: iwd: Ungexp file-append.
* rosenthal/services/networking.scm (iwd-shepherd-service)
[#:environment-variables]: Ungexp file-append.
2023-08-14 08:41:33 +08:00
Hilton Chain 939ec4a7c4 bootloader: Add grub-efi-luks2-bootloader.
* rosenthal/bootloader/grub.scm: New file.
(grub-efi-luks2-bootloader): New variable.
2023-08-14 01:23:11 +08:00
Hilton Chain 1eb4642a73 rosenthal: Add grub-efi-luks2.
* rosenthal/packages/bootloaders.scm: New file.
(grub-runtime-memregion-alloc-patch,grub-luks2-argon2-support-patch)
(grub-install-luks2-fix-patch,grub-efi-luks2): New variables.
2023-08-14 01:21:31 +08:00
Hilton Chain 0ef5c4c2eb rosenthal: Add shadow-tls-bin.
* rosenthal/packages/binaries.scm (shadow-tls-bin): New variable.
2023-08-13 11:18:10 +08:00
Hilton Chain 8f3a6b5ee9 rosenthal: wakatime-cli-bin: Update to 1.73.4.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.73.4.
2023-08-13 09:31:53 +08:00
Hilton Chain fc26b38cbb Revert "Import seatd-service-type from Guix."
This reverts commit 2bc27145b3.

Guix has switched to cgroup v2 in 969cea683615e79c7e6548f945f15af80ad58a8a.
2023-08-09 09:00:48 +08:00
Hilton Chain d29f278c2d rosenthal: hugo-bin: Update to 0.117.0.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.117.0.
2023-08-08 14:22:32 +08:00
Hilton Chain 060204c29e services: Use match-record.
* rosenthal/services/bittorrent.scm (qbittorrent-configuration)[qbittorrent]:
Change field type to file-like.
(qbittorrent-activation,qbittorrent-shepherd-service): Use match-record-lambda
* rosenthal/services/child-error.scm (miniflux-configuration)[miniflux],
(cloudflare-tunnel-configuration)[cloudflared]: Change field type to file-like
(clash-activation,clash-shepherd-service,cloudflare-tunnel-shepherd-service)
(cloudflare-warp-shepherd-service,miniflux-shepherd-service)
(home-wakapi-shepherd-service,home-socks2http-shepherd-service): Use
match-record-lambda.
* rosenthal/services/dns.scm (smartdns-configuration)[smartdns]: Change field
type to file-like.
(smartdns-shepherd-service): Use match-record-lambda.
* rosenthal/services/networking.scm (iwd-configuration)[iwd]: Change field
type to file-like.
(iwd-shepherd-service,iwd-etc-service): Use match-record-lambda.
2023-08-08 13:57:56 +08:00
Hilton Chain b1fc64d837 rosenthal: sing-box-bin: Update to 1.3.6.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.3.6.
2023-08-07 21:07:08 +08:00
Hilton Chain 129ca6fe16 rosenthal: wakatime-cli-bin: Update to 1.73.2.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): Update to 1.73.2.
2023-08-06 23:31:06 +08:00
Hilton Chain f2ed29ac95 rosenthal: cloudflare-warp-bin: Adjust license name and description.
* rosenthal/packages/binaries.scm (cloudflare-warp-bin)[license]: Change name
and description to what Nonguix uses for nonfree software.
2023-08-06 23:30:27 +08:00
Hilton Chain b9eb466764 gnu: hyprland: Update to 0.28.0.
* rosenthal/packages/wm.scm (hyprland): Update to 0.28.0.
<#:phases>: Substitute program paths.
Substitute GIT_BRANCH, GIT_COMMIT_MESSAGE and GIT_TAG.
[inputs]: Add pciutils.
(wlroots-for-hyprland): Update to 0.16.0-669.e8d545a
2023-08-04 15:25:53 +08:00
Hilton Chain 1505b2d7b3 services: Add home-socks2http.
* rosenthal/services/child-error.scm (home-socks2http-configuration)
(home-socks2http-shepherd-service,home-socks2http-service-type): New variables
2023-08-04 13:28:45 +08:00
Hilton Chain 87db633fab rosenthal: Add socks2http.
* rosenthal/packages/networking.scm (socks2http): New variable.
2023-08-02 20:26:07 +08:00
Hilton Chain c8c4a6f991 rosenthal: Remove wayland-protocols-1.31.
wayland-protocols in Guix has been updated to 1.32, this package is not needed.

* rosenthal/packages/freedesktop.scm (wayland-protocols-1.31): Delete variable.
* rosenthal/packages/wm.scm (wlroots-for-hyprland)[propagated-inputs]: Don't
replace wayland-protocols.
2023-08-01 18:07:36 +08:00
Hilton Chain 3fc6f0e46f rosenthal: hugo-bin: Update to 0.116.1.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.116.1.
2023-08-01 18:07:08 +08:00
Hilton Chain 2fcd23369b rosenthal: hugo-bin: Update to 0.116.0.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.116.0.
[arguments]<#:install-plan>: Adjust plan.
<#:phases>: Find gcc:lib with search-input-file.
[inputs]: Add gcc:lib, glibc.
2023-08-01 13:00:29 +08:00
Hilton Chain 62db72e49f services: cloudflare-tunnel: Set token in environment variable.
* rosenthal/services/child-error.scm (cloudflare-tunnel-shepherd-service)
[start]<#:environment-variables>: Set token here to avoid seeing it in `ps'.
2023-07-29 18:59:31 +08:00
Hilton Chain 2ba2f5a117 rosenthal: tailscale-bin: Update to 1.46.1.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.46.1.
[arguments]<#:install-plan>: Merge install plans.
2023-07-27 11:05:54 +08:00
Hilton Chain a2c164d008 rosenthal: cloudflared: Update to 2023.7.3.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.7.3.
2023-07-27 00:46:03 +08:00
Hilton Chain b48529e7e4 rosenthal: sing-box-bin: Update to 1.3.4.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.3.4.
2023-07-25 21:40:24 +08:00
Hilton Chain 5289be88a7 rosenthal: cloudflared: Update to 2023.7.2.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.7.2.
2023-07-24 20:17:18 +08:00
Hilton Chain c13a7498b5 rosenthal: sing-box-bin: Update to 1.3.3.
* rosenthal/packages/binaries.scm (sing-box-bin): Update to 1.3.3.
[arguments]<#:install-plan>: Adjust plan.
2023-07-24 20:15:20 +08:00
Hilton Chain d8a88b3fae rosenthal: hugo-bin: Update to 0.115.4.
* rosenthal/packages/binaries.scm (hugo-bin): Update to 0.115.4.
[arguments]<#:phases>: Use libc from build environment.
[inputs]: Remove glibc.
2023-07-21 00:27:47 +08:00
Hilton Chain 4cfd770031 rosenthal: hyprland: Update to 0.27.2.
* rosenthal/packages/wm.scm (hyprland): Update to 0.27.2.
2023-07-19 21:17:52 +08:00
Hilton Chain c06db22c7c rosenthal: hyprland: Update to 0.27.1.
* rosenthal/packages/wm.scm (hyprland): Update to 0.27.1.
(wlroots-for-hyprland): Update to 0.16.0-660.7791ffe.
2023-07-19 11:17:40 +08:00
Hilton Chain c9a8ae39d4 rosenthal: tailscale-bin: Update to 1.44.2.
* rosenthal/packages/binaries.scm (tailscale-bin): Update to 1.44.2.
2023-07-19 11:17:25 +08:00
Hilton Chain 8dfefb0ef0 rosenthal: cloudflared: Update to 2023.7.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.7.1.
2023-07-17 15:58:51 +08:00
Hilton Chain db117efdda Update README.org. 2023-07-16 00:13:53 +08:00
Hilton Chain bf8cd7341a services: Add cloudflare-warp-service-type.
* rosenthal/services/child-error.scm (cloudflare-warp-configuration)
(cloudflare-warp-service-type): New variables.
2023-07-15 23:59:21 +08:00
Hilton Chain d091a0f624 services: wakapi: Use wakapi package.
* rosenthal/services/child-error.scm (home-wakapi-configuration)[wakapi]:
Change default value to wakapi-bin package.
(home-wakapi-shepherd-service)[start]: Adjust accordingly.
[stop]: Add missing field.
2023-07-15 00:53:22 +08:00
Hilton Chain 74ad534cc6 services: clash: Use clash package.
* rosenthal/services/child-error.scm (clash-configuration)[clash]: Change
default value to clash-bin package.
(clash-shepherd-service)[start]: Adjust accordingly.
2023-07-15 00:51:13 +08:00
Hilton Chain d9762b66ac rosenthal: Add wakatime-cli-bin.
* rosenthal/packages/binaries.scm (wakatime-cli-bin): New variable.
2023-07-15 00:47:19 +08:00
Hilton Chain e1ece8946d rosenthal: Add wakapi-bin.
* rosenthal/packages/binaries.scm (wakapi-bin): New variable.
2023-07-15 00:46:55 +08:00
Hilton Chain 4424b36680 rosenthal: Add tailscale-bin.
* rosenthal/packages/binaries.scm (tailscale-bin): New variable.
2023-07-15 00:46:35 +08:00
Hilton Chain 67fe9b6ef8 rosenthal: Add sing-box-bin.
* rosenthal/packages/binaries.scm (sing-box-bin): New variable.
2023-07-15 00:46:21 +08:00
Hilton Chain b629fa832c rosenthal: Add hugo-bin.
* rosenthal/packages/binaries.scm (hugo-bin): New variable.
2023-07-15 00:45:02 +08:00
Hilton Chain f24ac6493e rosenthal: Add clash-bin.
* rosenthal/packages/binaries.scm (clash-bin): New variable.
2023-07-15 00:44:24 +08:00
Hilton Chain 99dfeaf2d7 rosenthal: Add cloudflare-warp-bin. [nonfree]
* rosenthal/packages/binaries.scm: New file.
(license,cloudflare-warp-bin): New variables.
2023-07-15 00:43:31 +08:00
Hilton Chain 47e6b72e60 rosenthal: cloudflared: Update to 2023.7.0.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.7.0.
[arguments]<#:phases>: Add 'disable-cgo.
2023-07-14 10:06:24 +08:00
Hilton Chain 2c594e3fac rosenthal: Add tree-sitter-yaml.
* rosenthal/packages/tree-sitter.scm (tree-sitter-yaml): New variable.
2023-07-13 21:31:40 +08:00
Hilton Chain 091c21ec8b rosenthal: Add tree-sitter-dockerfile.
* rosenthal/packages/tree-sitter.scm (tree-sitter-dockerfile): New variable.
2023-07-13 21:25:44 +08:00
Hilton Chain a07833bbc0 rosenthal: Add tree-sitter-cmake.
* rosenthal/packages/tree-sitter.scm: New file.
(tree-sitter-grammar,tree-sitter-cmake): New variables.
2023-07-13 21:25:03 +08:00
Hilton Chain a954fccc99 rosenthal: hyprland: Update to 0.27.0.
* rosenthal/packages/wm.scm (hyprland-portals-patch): New variable.
(hyprland)[patches]: Add it.
Update to 0.27.0.
(wlroots-for-hyprland): Update to 0.16.0-548.7e7633a.
2023-07-13 15:52:26 +08:00
Hilton Chain 7171134718 services: miniflux: Rename config to options.
* rosenthal/services/child-error.scm (miniflux-configuration)[miniflux]:
Switch to a package.
[config]: Rename to ...
[optinos]: ...this.
(miniflux-shepherd-service): Switch to MATCH-RECORD.
Construct single option with FORMAT.
2023-07-07 15:30:06 +08:00
Hilton Chain 5b132c8844 services: smartdns: Rename config to config-file.
* rosenthal/services/dns.scm (smartdns-configuration)[config]: Rename to ...
[config-file]: ...this.
(smartdns-shepherd-service): Switch to match-record.
[start]: Adjust accordingly.
2023-07-07 15:28:22 +08:00
Hilton Chain b717b87fcd services: smartdns: Remove log-file option.
It's already configured in the config flie.

* rosenthal/services/dns.scm (smartdns-configuration)[log-file]: Remove field.
(smartdns-shepherd-service): Adjust MATCH-LAMBDA.
[start]: Remove "-x" option.
<#:log-file>: Remove field.
2023-07-07 14:57:36 +08:00
Hilton Chain b810c93083 Update README.org. 2023-07-02 17:02:00 +08:00
Hilton Chain c609c50603 NEWS: qbittorrent-enhanced upstreamed.
* NEWS: Add entry for qbittorrent-enhanced removal.
2023-07-02 17:00:15 +08:00
Hilton Chain ed1058c688 rosenthal: Remove qbittorrent-enhanced. [upstreamed]
* rosenthal/packages/bittorrent.scm (qbittorrent-enhanced)
(qbittorrent-enhanced-edition): Delete variables.
2023-07-02 16:47:01 +08:00
Hilton Chain f668b716b6 rosenthal: Remove qbittorrent-enhanced-nox. [upstreamed]
* rosenthal/packages/bittorrent.scm (qbittorrent-enhanced-nox)
(qbittorrent-enhanced-edition-nox): Delete variables.
2023-07-02 16:46:06 +08:00
Hilton Chain 7e9fe5760b NEWS: linux-xanmod merged to Nonguix.
* NEWS: Add entry for linux-xanmod removal.
2023-07-01 11:05:07 +08:00
Hilton Chain 17106e7ed3 rosenthal: Remove linux-xanmod.
* rosenthal/packages/linux.scm (%default-extra-linux-options,config->string)
(make-linux-xanmod-source,make-linux-xanmod,linux-xanmod-version)
(linux-xanmod-revision,linux-xanmod-source,linux-xanmod): Delete variables.
* README.org: Adjusted accordingly.
2023-07-01 10:40:23 +08:00
Hilton Chain e545bc545d services: qbittorrent: Require networking.
* rosenthal/services/bittorrent.scm (qbittorrent-shepherd-service)
[requirement]: Replace loopback to networking.
2023-07-01 01:59:40 +08:00
Hilton Chain ece7f31eb3 rosenthal: linux-xanmod: Update to 6.3.10.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.3.10.
2023-06-29 13:44:45 +08:00
Hilton Chain 766732fa64 rosenthal: linux-xanmod: Update to 6.3.9.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.3.9.
2023-06-28 22:47:05 +08:00
Hilton Chain c1187b9188 rosenthal: dnsmasq-china-list: Update to 0-12.04ff7d2.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to 0-12.04ff7d2.
2023-06-28 22:39:06 +08:00
Hilton Chain b23c4c6f50 gnu: qbittorrent-enhanced: Update to 4.5.4.10.
* rosenthal/packages/bittorrent.scm (qbittorrent-enhanced): Update to 4.5.4.10
2023-06-28 21:36:44 +08:00
Hilton Chain a999008749 rosenthal: Rename qbittorrent-enhanced-edition to qbittorrent-enhanced.
* rosenthal/packages/bittorrent.scm (qbittorrent-enhanced)
(qbittorrent-enhanced-nox): New variables.
(qbittorrent-enhanced-edition,qbittorrent-enhanced-edition-nox): Mark as
deprecated aliases.
2023-06-28 21:36:23 +08:00
Hilton Chain b829115cda services: qbittorrent: Use qbittorrent-nox.
* rosenthal/services/bittorrent.scm (qbittorrent-configuration)[qbittorrent]:
Use qbittorrent-nox.
2023-06-28 21:35:05 +08:00
Hilton Chain 5ae5900f2d services: qbittorrent: Use match-record.
* rosenthal/services/bittorrent.scm (qbittorrent-shepherd-service): Use
match-record.
2023-06-28 20:45:09 +08:00
Hilton Chain 45061dd211 services: qbittorrent: Increase Shepherd grace period.
* rosenthal/services/bittorrent.scm (qbittorrent-shepherd-service):
[start]: Remove #:environment-variables.
[stop]: Add #:grace-period.
2023-06-28 20:30:48 +08:00
Hilton Chain ceb36522f0 rosenthal: qogir-icon-theme: Update to 2023.06.05.
* rosenthal/packages/gnome-xyz.scm (qogir-icon-theme): Update to 2023.06.05.
[license]: Correct license to GPL3+.
2023-06-21 20:05:28 +08:00
Hilton Chain fbdaac770a rosenthal: cloudflared: Update to 2023.6.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.6.1.
2023-06-20 21:37:15 +08:00
Hilton Chain b3aa69459f rosenthal: linux-xanmod: Update to 6.3.8.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.3.8.
2023-06-20 18:40:55 +08:00
Hilton Chain 5cf7452091 Add NEWS.
* .guix-channel: Add news-file field.
* NEWS: New file.
2023-06-17 20:57:33 +08:00
Hilton Chain c3ed521085 Move channel to Codeberg.
* .guix-channel: Change URL.
* README.org: Ditto.
2023-06-17 19:20:59 +08:00
Hilton Chain 002ad35d6e Update README.org. 2023-06-14 23:07:14 +08:00
Hilton Chain 4c5dfa0583 rosenthal: linux-xanmod: Update to 6.3.7.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.3.7.
(make-linux-xanmod-source,make-linux-xanmod,linux-xanmod-version)
(linux-xanmod-revision): New variables.
(%xanmod-version,%xanmod-revision): Delete variables.
2023-06-14 18:53:57 +08:00
Hilton Chain bf089a2d2e rosenthal: Remove linux-hardened.
* rosenthal/packages/linux.scm (%hardened-version,%hardened-revision)
(linux-hardened-source,linux-hardened): Delete variables.
2023-06-14 14:53:07 +08:00
Hilton Chain aa6d2d652c rosenthal: qogir-icon-theme: Update to 2023.02.23.
* rosenthal/packages/gnome-xyz.scm (qogir-icon-theme): Update to 2023.02.23.
[build-system]: Switch to copy-build-system.
2023-06-02 23:05:12 +08:00
Hilton Chain 1423079db1 rosenthal: hyprland: Update to 0.26.0.
* rosenthal/packages/wm.scm (hyprland): Update to 0.26.0.
(wlroots-for-hyprland)[propagated-inputs]: Replace libinput-minimal to
libinput-minimal-1.23.0.
2023-06-02 23:04:25 +08:00
Hilton Chain 8aa643c684 rosenthal: Add libinput-minimal-1.23.0.
* rosenthal/packages/freedesktop.scm (libinput-minimal-1.23.0): New variable.
2023-06-02 23:04:06 +08:00
Hilton Chain 8e4b2f23fe rosenthal: linux-xanmod: Update to 6.3.5.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.3.5.
2023-06-01 21:36:18 +08:00
Hilton Chain f8115b491c rosenthal: grimblast: Update to 0.1.
* rosenthal/packages/wm.scm (grimblast): Update to 0.1.
2023-05-29 19:58:59 +08:00
Hilton Chain 5791ad387d rosenthal: grimblast: Wrap script.
* rosenthal/packages/wm.scm (grimblast)[argument]<#:phases>: Remove phase
'patch-script-dependencies.
Add phase 'wrap.
[inputs]: Add guile-3.0.
2023-05-29 19:52:11 +08:00
Hilton Chain 99ad73db4f rosenthal: hyprland: Update to 0.25.0-2.0432804.
* rosenthal/packages/wm.scm (wlroots-for-hyprland): Update to
0.16.0-368.6830bfc.
[build-system,arguments]: Drop field, use inherited value.
[propagated-inputs]: Add libdisplay-info-for-hyprland.
Remove libdrm-2.4.115.
Don't replace libxkbcommon.
[native-inputs]: Replace hwdata:pnp to hwdata-for-hyprland:out.
(hyprland-unbundle-wlroots-patch): Update patch.
(hyprland): Update to 0.25.0-2.0432804.
[arguments]<#:phases>: Add phase 'substitute-meson-build.
[inputs]: Add pango, udis86-for-hyprland.
Remove cairo, pixman-0.42.2.
2023-05-29 17:14:07 +08:00
Hilton Chain ee5b6600e5 rosenthal: Add udis86-for-hyprland.
* rosenthal/packages/wm.scm (udis86-for-hyprland): New variable.
2023-05-29 16:49:50 +08:00
Hilton Chain 7d16b8f5bc rosenthal: Add libdisplay-info-for-hyprland.
* rosenthal/packages/wm.scm (libdisplay-info-for-hyprland): New variable.
2023-05-29 16:49:34 +08:00
Hilton Chain a7fb74617e rosenthal: Add hwdata-for-hyprland.
* rosenthal/packages/wm.scm (hwdata-for-hyprland): New variable.
2023-05-29 16:47:50 +08:00
Hilton Chain 18b5f4779c rosenthal: Remove wayland-1.21.0.
* rosenthal/packages/freedesktop.scm (wayland-1.21.0): Delete variable.
2023-05-29 15:51:49 +08:00
Hilton Chain cbe04c1d70 rosenthal: hyprland-protocols: Update to 0.2.
* rosenthal/packages/wm.scm (hyprland-protocols): Update to 0.2.
2023-05-29 15:34:13 +08:00
Hilton Chain 6e8ceea382 fixup! rosenthal: Remove empty modules. 2023-05-29 14:58:26 +08:00
Hilton Chain 92ba09a173 rosenthal: Remove empty modules.
* rosenthal/packages/golang.scm: ...
* rosenthal/packages/python-xyz.scm: ...
* rosenthal/packages/virtualization.scm: Delete files.
2023-05-29 14:17:38 +08:00
Hilton Chain d9f338e021 gnu: emacs-xyz: Remove -dev packages.
* rosenthal/packages/emacs-xyz.scm (emacs-company-dev,emacs-doom-modeline-dev)
(emacs-rime-dev,emacs-volatile-highlights-dev,emacs-org-rainbow-tags-dev):
Delete variables.
2023-05-29 11:29:36 +08:00
Hilton Chain a0264444b6 rosenthal: linux-xanmod: Update to 6.3.4.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.3.4.
2023-05-27 12:21:02 +08:00
Hilton Chain bc54704728 Revert "rosenthal: linux-xanmod: Update to 6.3.4."
This reverts commit 9e54a74bf1.
2023-05-27 11:43:32 +08:00
Hilton Chain 9e54a74bf1 rosenthal: linux-xanmod: Update to 6.3.4.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.3.4.
2023-05-27 11:31:56 +08:00
Hilton Chain 1adba81d3f rosenthal: cloudflared: Update to 2023.5.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.5.1.
2023-05-27 11:31:08 +08:00
Hilton Chain f6fdb520ca rosenthal: dnsmasq-china-list: Update to 0-11.d545efe.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to 0-11.d545efe.
2023-05-27 10:58:47 +08:00
Hilton Chain 43e374a2dd utils: Remove counter-stop.scm.
* rosenthal/utils/counter-stop.scm: Delete file.
* rosenthal/utils/kicksecure.scm: Delete file.
2023-05-07 16:36:21 +08:00
Hilton Chain 35a4bc0849 rosenthal: Remove RPi related stuff.
* rosenthal/bootloader/u-boot.scm: Delete file.
* rosenthal/packages/bootloaders.scm: Delete file.
2023-05-07 16:09:38 +08:00
Hilton Chain 14c41f9400 rosenthal: cloudflared: Update to 2023.5.0.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.5.0.
2023-05-07 15:50:55 +08:00
Hilton Chain a963a388b1 rosenthal: wm: Fix use-module.
Some modules are missing for grimblast.
2023-05-07 15:38:58 +08:00
Hilton Chain b47c1ca746 rosenthal: linux-hardened: Update to 6.1.27.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.1.27.
2023-05-07 15:27:59 +08:00
Hilton Chain a8b892dd6e rosenthal: linux-xanmod: Update to 6.3.1.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.3.1.
2023-05-07 15:21:58 +08:00
Hilton Chain cdce2bb0b9 rosenthal: Replace wlroots-0.16.1 and wlroots-dev to wlroots-for-hyprland.
* rosenthal/packages/wm.scm (wlroots-0.16.1,wlroots-dev): Replace them to ...
(wlroots-for-hyprland): ... this.
2023-04-25 19:58:21 +08:00
Hilton Chain 6ce35403a5 rosenthal: Remove waylock.
* rosenthal/packages/wm.scm (waylock): Delete variable.
2023-04-25 19:55:19 +08:00
Hilton Chain 26653dae61 rosenthal: Remove libva-2.16.0. [upstreamed]
* rosenthal/packages/video.scm (libva-2.16.0): Delete variable.
2023-04-25 19:12:21 +08:00
Hilton Chain d3b50c0dac rosenthal: Remove emacs-xonsh-mode. [upstreamed]
* rosenthal/packages/emacs-xyz.scm (emacs-xonsh-mode): Delete variable.
2023-04-25 17:56:17 +08:00
Hilton Chain 1e8702cf45 rosenthal: cloudflared: Update to 2023.4.2.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.4.2.
2023-04-25 14:52:32 +08:00
Hilton Chain 7e5d525a7e rosenthal: emacs-volatile-highlights-dev: Update to 1.15-9.fcf6e27.
* rosenthal/packages/emacs-xyz.scm (emacs-volatile-highlights-dev): Update to
1.15-9.fcf6e27.
2023-04-01 14:16:56 +08:00
Hilton Chain c1c35204fd rosenthal: emacs-rime-dev: Update to 1.0.5-13.6438aba.
* rosenthal/packages/emacs-xyz.scm (emacs-rime-dev): Update to 1.0.5-13.6438aba.
2023-04-01 14:14:59 +08:00
Hilton Chain 5d51859314 rosenthal: linux-hardened: Update to 6.1.21.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.1.21.
2023-04-01 14:11:14 +08:00
Hilton Chain 5817ee9def rosenthal: emacs-doom-modeline-dev: Update to 3.3.2-54.236fa33.
* rosenthal/packages/emacs-xyz.scm (emacs-doom-modeline-dev): Update to
3.3.2-54.236fa33.
2023-04-01 14:09:41 +08:00
Hilton Chain 255bb1d632 rosenthal: linux-xanmod: Update to 6.2.9.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.2.9.
2023-04-01 14:07:24 +08:00
Hilton Chain 8140782823 rosenthal: emacs-company-dev: Update to 0.9.13-377.b3b9fa3.
* rosenthal/packages/emacs-xyz.scm (emacs-company-dev): Update to
0.9.13-377.b3b9fa3.
2023-04-01 13:37:12 +08:00
Hilton Chain 8efad93dcf rosenthal: cloudflared: Update to 2023.3.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.3.1.
2023-03-14 14:31:59 +08:00
Hilton Chain b79cf7e9a1 rosenthal: linux-hardened: Update to 6.1.19.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.1.19.
2023-03-14 14:25:33 +08:00
Hilton Chain 3fcebc74ab rosenthal: linux-xanmod: Update to 6.2.5.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.2.5.
2023-03-14 14:20:50 +08:00
Hilton Chain 3add85fda0 rosenthal: linux-xanmod: Update to 6.2.3.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.2.3.
2023-03-12 21:01:28 +08:00
Hilton Chain 4cc33d3370 rosenthal: linux-hardened: Update to 6.1.15.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.1.15.
2023-03-10 15:24:13 +08:00
Hilton Chain 246150d862 rosenthal: linux-xanmod: Update to 6.2.2.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.2.2.
2023-03-10 15:24:01 +08:00
Hilton Chain c4a4ba04a6 rosenthal: Remove bubblewrap-0.7.0.
* rosenthal/packages/virtualization.scm (bubblewrap-0.7.0): Delete variable.

Version 0.8.0 is available in Guix now.
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=5755c5b33ceb92be4511afd167a0dc17a46a6d3d
2023-03-10 14:07:41 +08:00
Hilton Chain 41aa2300a6 rosenthal: cloudflared: Update to 2023.3.0.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.3.0.
2023-03-03 21:43:22 +08:00
Hilton Chain b18bdcc4af rosenthal: linux-hardened: Update to 6.1.14.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.1.14.
2023-02-27 19:00:31 +08:00
Hilton Chain b4cb000495 rosenthal: linux-xanmod: Update to 6.2.1.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.2.1.
2023-02-27 19:00:00 +08:00
Hilton Chain fb04d47f46 rosenthal: libxkbcommon: Update to 1.5.0.
* rosenthal/packages/xdisorg.scm (libxkbcommon-1.4.1): Update to 1.5.0.
Rename to ...
(libxkbcommon-1.5.0): ... this.
(libxkbcommon-minimal): Replace it.
2023-02-24 14:31:24 +08:00
Hilton Chain 77cfc7b05b rosenthal: hyprland: Don't depend on pango.
* rosenthal/packages/wm.scm (hyprland-unbundle-wlroots-patch): Update patch.
(hyprland)[inputs]: Add cairo.
Remove pango-next.
2023-02-24 14:25:55 +08:00
Hilton Chain 1852de97f6 rosenthal: libdrm: Update to 2.4.115.
* rosenthal/packages/xdisorg.scm (libdrm-2.4.114): Update to 2.4.115.
Rename to ...
(libdrm-2.4.115): ... this.
* rosenthal/packages/wm.scm (wlroots-0.16.1)[propagated-inputs]: Replace it.
2023-02-24 14:17:35 +08:00
Hilton Chain ab00ea374c rosenthal: Remove kconfig-hardened-check-dev.
* rosenthal/packages/linux.scm (kconfig-hardened-check-dev): Delete variable.
2023-02-24 01:35:28 +08:00
Hilton Chain c84648b1e1 rosenthal: linux-hardened: Update to 6.1.13.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.1.13.
(%upstream-linux-source,source-with-patches,linux-hardened-patch): Delete
variables.
2023-02-24 00:37:48 +08:00
Hilton Chain 4b8c8963ff rosenthal: linux-xanmod: Update to 6.1.13.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.1.13.
(linux-xanmod-patch): Delete variable.
* rosenthal/utils/download.scm: Remove file.
2023-02-24 00:02:42 +08:00
Hilton Chain 2f85fae959 rosenthal: dnsmasq-china-list: Update to 0-10.15da9b0.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to 0-10.15da9b0.
2023-02-21 16:57:28 +08:00
Hilton Chain ecac695859 rosenthal: cloudflared: Add build flags and install documentation.
* rosenthal/packages/networking.scm (cloudflared)[arguments]<#:build-flags>:
Add field.
<#:phases>: Install documentation.
2023-02-21 15:09:13 +08:00
Hilton Chain cae796ef1c rosenthal: Add emacs-volatile-highlights-dev.
* rosenthal/packages/emacs-xyz.scm (emacs-volatile-highlights-dev): New
variable.
2023-02-21 13:54:28 +08:00
Hilton Chain 287d6c9b64 rosenthal: linux-hardened: Update to 6.1.12.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.1.12.
2023-02-19 00:49:17 +08:00
Hilton Chain f5447aac23 rosenthal: linux-xanmod: Update to 6.1.12.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.1.12.
2023-02-18 23:48:18 +08:00
Hilton Chain cdb60de596 rosenthal: qbittorrent-enhanced-edition: Update to 4.5.0.10.
* rosenthal/packages/bittorrent.scm (qbittorrent-enhanced-edition): Update to
4.5.0.10.
2023-02-12 13:00:50 +08:00
Hilton Chain 698731e230 rosenthal: Remove smartdns. [upstreamed]
* rosenthal/packages/dns.scm (smartdns): Delete variable.
2023-02-12 11:42:50 +08:00
Hilton Chain 7d0593aad1 rosenthal: linux-xanmod: Update to 6.1.11.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.1.11.
2023-02-10 15:43:06 +08:00
Hilton Chain ff43bbbca8 rosenthal: linux-hardened: Update to 6.1.10.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.1.10.
2023-02-08 14:48:22 +08:00
Hilton Chain 91d880f371 rosenthal: linux-xanmod: Update to 6.1.10.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.1.10.
2023-02-07 18:01:21 +08:00
Hilton Chain 4716f4de90 rosenthal: cloudflared: Update to 2023.2.1.
* rosenthal/packages/networking.scm (cloudflared): Update to 2023.2.1.
2023-02-03 22:18:43 +08:00
Hilton Chain 9f839a51ea gnu: linux-hardened: Update to 6.1.9.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.1.9.
2023-02-02 16:52:42 +08:00
Hilton Chain 368106c421 rosenthal: linux-xanmod: Update to 6.1.9.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.1.9.
2023-02-02 16:51:34 +08:00
Hilton Chain 66025a538f rosenthal: linux-xanmod: Disable localversion.
* rosenthal/packages/linux.scm (linux-xanmod): Disable localversion.
2023-02-02 16:46:01 +08:00
Hilton Chain 44c7908c53 rosenthal: Remove go-github-com-google-gopacket. [upstreamed]
* rosenthal/packages/golang.scm (go-github-com-google-gopacket): Delete
variable.
2023-01-31 12:57:31 +08:00
Hilton Chain fa49f7f272 rosenthal: Remove go-github-com-macronut-go-tproxy. [upstreamed]
* rosenthal/packages/golang.scm (go-github-com-macronut-go-tproxy): Delete
variable.
2023-01-31 12:57:03 +08:00
Hilton Chain 77658f8519 rosenthal: Remove phantomsocks. [upstreamed]
* rosenthal/packages/networking.scm (phantomsocks): Delete variable.
2023-01-31 11:44:15 +08:00
Hilton Chain 5d1063ae60 rosenthal: hyprland: Update to 0.21.0beta.
* rosenthal/packages/wm.scm (hyprland): Update to 0.21.0beta.
2023-01-30 15:23:43 +08:00
Hilton Chain ba07b209c4 rosenthal: hyprland-protocols: Update to commit eb7dcc0132ad.
* rosenthal/packages/wm.scm (hyprland-protocols): Update to commit
eb7dcc0132ad.
2023-01-30 15:23:11 +08:00
Hilton Chain e3ed83a22a services: cloudflare-tunnel-service-type: Use cloudflared package.
* rosenthal/services/child-error.scm (cloudflare-tunnel-configuration)
(cloudflare-tunnel-shepherd-service): Switch to cloudflared package.
2023-01-28 20:07:36 +08:00
Hilton Chain e16ddf7be9 rosenthal: Add cloudflared.
* rosenthal/packages/networking.scm (cloudflared): New variable.
2023-01-28 19:47:24 +08:00
Hilton Chain a33c77f33d counter-stop: Add channels.
* rosenthal/utils/counter-stop.scm (%channel-guix,%channel-nonguix)
(%channel-rosenthal,%guix-authorized-key-dorphine)
(%rosenthal-default-channels): New variables.
2023-01-27 16:10:38 +08:00
Hilton Chain a7f3db40a7 rosenthal: linux-xanmod: Fix %base-initrd-modules support.
* rosenthal/packages/linux.scm (linux-xanmod)[arguments]<#:phases>: Build
virtio_console and xts kernel modules.

They are needed for %base-initrd-modules.
2023-01-26 01:06:42 +08:00
Hilton Chain 4be45cb381 rosenthal: linux-hardened: Update to 6.1.8.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.1.8.
2023-01-25 15:47:19 +08:00
Hilton Chain 2399087de9 rosenthal: linux-xanmod: Update to 6.1.8.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.1.8.
2023-01-25 13:32:26 +08:00
Hilton Chain 5d8b51d469 rosenthal: flashrom-dev: Update to commit 7ffa626d1278.
* rosenthal/packages/flashing-tools.scm (flashrom-dev): Update to commit
7ffa626d1278.
2023-01-24 16:23:47 +08:00
Hilton Chain ac3c17adb3 rosenthal: emacs-rime-dev: Update to commit 0a50c918d2de.
* rosenthal/packages/emacs-xyz.scm (emacs-rime-dev): Update to commit
0a50c918d2de.
2023-01-24 14:57:45 +08:00
Hilton Chain 4f5322927d rosenthal: Remove emacs-macrostep-geiser-dev.
* rosenthal/packages/emacs-xyz.scm (emacs-macrostep-geiser-dev): Delete
variable.
2023-01-24 14:52:02 +08:00
Hilton Chain 14e9955727 rosenthal: emacs-doom-modeline-dev: Update to commit f6a2d5bb96ad.
* rosenthal/packages/emacs-xyz.scm (emacs-doom-modeline-dev): Update to commit
f6a2d5bb96ad.
2023-01-24 14:51:34 +08:00
Hilton Chain e7bd509970 rosenthal: emacs-company-dev: Update to commit 93b0284e5a6b.
* rosenthal/packages/emacs-xyz.scm (emacs-company-dev): Update to commit
93b0284e5a6b.
2023-01-24 14:48:15 +08:00
Hilton Chain 4c7542d973 rosenthal: smartdns: Correct license to GPL3+.
* rosenthal/packages/dns.scm (smartdns)[source]: Add a snippet to avoid
installing systemd service.
[license]: Correct to GPL3+.
2023-01-24 14:42:20 +08:00
Hilton Chain 431a808aa5 rosenthal: dnsmasq-china-list: Update to commit 511c27681623.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to commit
511c27681623.
2023-01-24 14:39:56 +08:00
Hilton Chain f6e5c1866c rosenthal: linux-xanmod: Build with shipped kconfig.
* rosenthal/packages/linux.scm (linux-xanmod)[arguments]<#:phases>: Build with
shipped kconfig.
[native-inputs]: Add cpio and zstd.
(%default-extra-linux-options,config->string): New variables.
2023-01-24 13:42:37 +08:00
Hilton Chain 962a589fec rosenthal: linux: Use source-with-patches procedure.
* rosenthal/packages/linux.scm (source-with-patches): New variable.
(linux-xanmod-source,linux-hardened-source): Use the `source-with-patches`
procedure from `(gnu packages linux)`.
2023-01-23 20:08:10 +08:00
Hilton Chain 4b82e7f2c8 rosenthal: linux: Build kernels with default compiler and options.
* rosenthal/packages/linux.scm (linux-xanmod,linux-hardened): Build with gcc
and default flags.
(%cflags,%ldflags): Delete variables.

Signed-off-by: Hilton Chain <hako@ultrarare.space>
2023-01-23 15:33:26 +08:00
Hilton Chain 02e58caf7f rosenthal: hyprland: Enable Xwayland support.
* rosenthal/packages/wm.scm (hyprland)[arguments]<#:configure-flags>: Drop
field.

Signed-off-by: Hilton Chain <hako@ultrarare.space>
2023-01-22 22:54:00 +08:00
Hilton Chainandegiorgis 7be40aad14 rosenthal: wlroots-0.16.1: Add Xwayland support.
* rosenthal/packages/wm.scm (wlroots-0.16.1)[propagated-inputs]: Add libxcb
and xcb-util-renderutil.

Co-authored-by: egiorgis <giorgiserik@gmail.com>
Signed-off-by: Hilton Chain <hako@ultrarare.space>
2023-01-22 22:44:01 +08:00
Hilton Chain efab3058a8 rosenthal: linux-xanmod: Correct extra-version.
* rosenthal/packages/linux.scm (linux-xanmod): Correct extra-version to
%xanmod-revision.

Signed-off-by: Hilton Chain <hako@ultrarare.space>
2023-01-22 22:42:12 +08:00
Hilton Chain fcf02ccc93 rosenthal: linux-hardened: Update to 6.1.7-hardened1.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.1.7-hardened1.
2023-01-20 17:20:02 +08:00
Hilton Chain 92bc6f73cc rosenthal: linux-xanmod: Update to 6.1.7-xanmod1.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.1.7-xanmod1.
2023-01-20 17:19:53 +08:00
Hilton Chain dc5f6b65b3 rosenthal: linux: Adjust source file names.
* rosenthal/packages/linux.scm (linux-xanmod-source,linux-hardened-source):
Add `file-name` field.
2023-01-20 17:19:46 +08:00
Hilton Chain 2cec4f4718 rosenthal: linux-xanmod-patch: Use url-fetch/xz-file instead.
* rosenthal/packages/linux.scm (linux-xanmod-patch): Use url-fetch/xz-file
instead.
(computed-origin-method,extract-xanmod-patch): Removed variables.
2023-01-20 17:19:26 +08:00
Hilton Chain 8a7ea1a8bd utils: Add url-fetch/xz-file.
* rosenthal/utils/download.scm (url-fetch*,url-fetch/xz-file): New variables.
2023-01-20 16:55:30 +08:00
Hilton Chain cd9db13a31 rosenthal: linux-hardened: Update to 6.1.6-hardened2.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.1.6-hardened2.
2023-01-16 21:40:17 +08:00
Hilton Chain fed616e5e6 .guix-authorizations: Move up the new key.
* .guix-authorizations: Move up the new key.

This workarounds <https://issues.guix.gnu.org/60852>.
2023-01-16 21:13:47 +08:00
Hilton Chain eb96e484f5 rosenthal: linux-hardened: Update to 6.0.18.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.0.18.
2023-01-14 01:09:49 +08:00
Hilton Chain 38290070c5 rosenthal: linux-xanmod: Update to 6.1.5.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.1.5.
2023-01-14 01:09:49 +08:00
Hilton Chain 06cf49842f utils: counter-stop: Remove unneeded settings.
* rosenthal/utils/counter-stop.scm (%rosenthal-base-packages): Remove curl,
mosh, unzip and zstd.
(%rosenthal-base-services): Remove ntp-service-type, openssh-service-type and
rngd-service.
2023-01-14 01:09:41 +08:00
Hilton Chain 1c1b79d2f1 .guix-authorizations: Authorize Hilton Chain's new key.
* .guix-authorizations (Hilton Chain): Add OpenPGP key fingerprint.
2023-01-12 01:08:33 +08:00
Hilton Chain c78aa90232 rosenthal: wlroots: Support elogind.
* rosenthal/packages/wm.scm (wlroots-0.16.0)[propagated-inputs]: Replace
libseat to the one with elogind support.
2023-01-09 22:10:30 +08:00
Hilton Chain eac46630f9 rosenthal: dnsmasq-china-list: Update to commit c533934ffcdc.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to commit
c533934ffcdc.
2023-01-09 14:30:25 +08:00
Hilton Chain 96893ace38 rosenthal: linux-hardened: Update to 6.0.17.
* rosenthal/packages/linux.scm (linux-hardened): Update to 6.0.17.
2023-01-09 14:24:11 +08:00
Hilton Chain 36f746614f rosenthal: linux-xanmod: Update to 6.1.4.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.1.4.
[arguments]<#:phases>: Add phase to remove the localversion file.
2023-01-09 14:21:16 +08:00
Hilton Chain 46e8c75db0 rosenthal: hyprland: Update to 0.20.1beta.
* rosenthal/packages/wm.scm (hyprland): Update to 0.20.1beta.
2023-01-09 13:38:31 +08:00
Hilton Chain bb2da8f6ef rosenthal: wlroots-dev: Update to commit 5f264a7d6c8a.
* rosenthal/packages/wm.scm (wlroots-dev): Update to commit 5f264a7d6c8a.
2023-01-09 13:20:11 +08:00
Hilton Chain 62adfd2225 rosenthal: wlroots: Update to 0.16.1.
* rosenthal/packages/wm.scm (wlroots-0.16.0): Update to 0.16.1.
Rename variable to wlroots-0.16.1.
(wlroots-dev): Changed accordingly.
2023-01-09 13:18:39 +08:00
Hilton Chain ce5d53d4a8 rosenthal: linux-xanmod: Update to 6.1.3.
* rosenthal/packages/linux.scm (linux-xanmod): Update to 6.1.3.
2023-01-07 20:13:29 +08:00
Hilton Chain dd3a4f1c4f rosenthal: grimblast: Update to commit 37c8121f98d7.
* rosenthal/packages/wm.scm (grimblast): Update to commit 37c8121f98d7.
2023-01-07 19:18:13 +08:00
Hilton Chain 5c7721f208 rosenthal: hyprland: Update to 0.20.0beta.
* rosenthal/packages/wm.scm (hyprland): Update to 0.20.0beta.
2023-01-07 19:07:34 +08:00
Hilton Chain daf971cba2 utils: %rosenthal-base-services: Change substitute URL for Nonguix.
* rosenthal/utils/counter-stop.scm (%rosenthal-base-services): Change
substitute URL for Nonguix.
2023-01-05 00:49:54 +08:00
Hilton Chain 3227d2a0e3 rosenthal: Add phantomsocks.
* rosenthal/packages/networking.scm (phantomsocks): New variable.
2023-01-04 23:38:02 +08:00
Hilton Chain 69ac40bc3e rosenthal: Add go-github-com-macronut-go-tproxy.
* rosenthal/packages/golang.scm (go-github-com-macronut-go-tproxy): New
variable.
2023-01-04 23:35:38 +08:00
Hilton Chain ea8fd51d9b rosenthal: Add go-github-com-google-gopacket.
* rosenthal/packages/golang.scm (go-github-com-google-gopacket): New variable.
2023-01-04 23:34:25 +08:00
Hilton Chain cb389fa771 rosenthal: linux-xanmod: Update to 6.1.2.
* rosenthal/packages/linux.scm (%xanmod-version,linux-xanmod-patch)
(linux-xanmod-source): Update to 6.1.2.
2023-01-04 23:15:15 +08:00
Hilton Chain 78b1fc864a rosenthal: linux-hardened: Update to 6.0.16.
* rosenthal/packages/linux.scm (%hardened-version,linux-hardened-patch)
(linux-hardened-source): Update to 6.0.16.
2023-01-04 23:14:19 +08:00
Hilton Chain 81d3200c84 rosenthal: linux: Version variables adjustment.
* rosenthal/packages/linux.scm (%xanmod-version): Rename to %xanmod-revision.
(%hardened-version): Rename to %hardened-revision.
(%xanmod-version,%hardened-version): New variables in place of %linux-version.
2023-01-04 23:03:54 +08:00
Hilton Chain 2d423a6615 rosenthal: Remove linux-rosenthal.
* rosenthal/packages/aux-files/config.zen3-dorphine: Delete file.
* rosenthal/packages/patches/linux-hardened-xanmod-adaption.patch: Likewise.
* rosenthal/packages/patches/linux-libre-deblob-check-omit-error.patch:
Likewise.
* rosenthal/packages/patches/linux-libre-deblob-keep-needed.patch: Likewise.
* rosenthal/packages/linux.scm (deblob-scripts,make-linux-libre-source)
(linux-rosenthal-deblob-scripts,linux-hardened-patch-for-xanmod)
(linux-rosenthal-source,linux-rosenthal-source-deblobed)
(linux-rosenthal): Delete variables.
2023-01-04 22:57:13 +08:00
Hilton Chain 2372c7a34c rosenthal: dnsmasq-china-list: Update to commit 781e3ac074ec.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to commit
781e3ac074ec.
2023-01-04 22:51:37 +08:00
Hilton Chain 46fdf0991b rosenthal: smartdns: Update to 40.
* rosenthal/packages/dns.scm (smartdns): Update to 40.
2023-01-02 19:25:00 +08:00
Hilton Chain a461de806b rosenthal: dnsmasq-china-list: Update to commit 1ec4e92f741d.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to commit
1ec4e92f741d.
2022-12-29 23:48:42 +08:00
Hilton Chain a2733bb2de rosenthal: kconfig-hardened-check-dev: Update to commit 6211b6852b6b.
* rosenthal/packages/linux.scm (kconfig-hardened-check-dev): Update to commit
6211b6852b6b.
2022-12-29 23:46:05 +08:00
Hilton Chain 1ebbc475b9 utils: %rosenthal-base-file-systems: Mount /run and /var/run as tmpfs.
* rosenthal/utils/counter-stop.scm (%rosenthal-base-file-systems): Mount /run
and /var/run as tmpfs.
2022-12-22 15:03:42 +08:00
Hilton Chain 43c39fa355 rosenthal: Remove emacs-god-mode-dev.
* rosenthal/packages/emacs-xyz.scm (emacs-god-mode-dev): Delete variable.
2022-12-22 14:04:38 +08:00
Hilton Chain b79f9092f3 rosenthal: linux-rosenthal: Update kconfig.
* rosenthal/packages/aux-files/config.zen3-dorphine: Update file.
2022-12-22 14:03:09 +08:00
Hilton Chain 158cd0c5a1 rosenthal: emacs-god-mode-dev: Update to commit c2d655e0baeb.
* rosenthal/packages/emacs-xyz.scm (emacs-god-mode-dev): Update to commit
c2d655e0baeb.
2022-12-20 21:21:02 +08:00
Hilton Chain 46d5a25ae0 rosenthal: emacs-doom-modeline-dev: Update to commit fe9ee5a2a950.
* rosenthal/packages/emacs-xyz.scm (emacs-doom-modeline-dev): Update to commit
fe9ee5a2a950.
2022-12-20 21:20:19 +08:00
Hilton Chain 945d8c0764 rosenthal: linux-rosenthal: Update to 6.0.12.
* rosenthal/packages/linux.scm (%linux-version): 6.0.12.
(linux-xanmod-patch,linux-hardened-patch,linux-hardened-source): Adjusted
accordingly.
2022-12-19 18:03:25 +08:00
Hilton Chain 2421ac75ee rosenthal: hyprland: Update to 0.19.2beta.
* rosenthal/packages/wm.scm (hyprland): Update to 0.19.2beta.
2022-12-19 16:58:09 +08:00
Hilton Chain 034f499178 rosenthal: hyprland-protocols: Update to commit 301733ae466b.
* rosenthal/packages/wm.scm (hyprland-protocols): Update to commit
301733ae466b.
2022-12-19 16:57:40 +08:00
Hilton Chain 8181b7fb4e services: child-error: Remove unneeded user and groups.
* rosenthal/services/child-error.scm (%cloudflare-tunnel-accounts): Deleted
variable.
(cloudflare-tunnel-shepherd-service)[start]: Change to `nobody` and `nogroup`.
(cloudflare-tunnel-service-type)[extensions]: Adjusted accordingly.
(%miniflux-accounts): Deleted `miniflux` group and use `nogroup` instead.
(miniflux-shepherd-service): Adjusted accordingly.
2022-12-19 14:57:26 +08:00
Hilton Chain 16a443b30d rosenthal: Add emacs-xonsh-mode.
* rosenthal/packages/emacs-xyz.scm (emacs-xonsh-mode): New variable.
2022-12-19 14:44:53 +08:00
Hilton Chain 717945c98e utils: %rosenthal-base-services: Re-order substitute URLs.
* rosenthal/utils/counter-stop.scm (%rosenthal-base-services): Re-order
substitute URLs.
2022-12-19 13:14:03 +08:00
Hilton Chain 4c19ddeb48 rosenthal: linux: Add supported-systems field.
* rosenthal/packages/linux.scm (linux-xanmod,linux-hardened): Add
supported-systems field.
2022-12-19 11:44:55 +08:00
Hilton Chain 37d9e02d76 services: smartdns-service-type: Add option to specify log file.
* rosenthal/services/dns.scm (smartdns-configuration): Add log-file option.
(smartdns-shepherd-service): Honor it.
2022-12-10 00:06:22 +08:00
Hilton Chain 93fa311070 rosenthal: dnsmasq-china-list: Update to commit 0bee4d245e35.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to commit
0bee4d245e35.
2022-12-09 23:44:13 +08:00
Hilton Chain 60da81067c rosenthal: linux: Update source to 6.0.11.
* rosenthal/packages/linux.scm (%linux-version,linux-xanmod-patch)
(linux-hardened-patch,linux-hardened-source): Update to 6.0.11.
(linux-hardened-patch-for-xanmod): Use a fixed file name.
* rosenthal/packages/patches/linux-hardened-xanmod-adaption.patch: Updated
accordingly.
2022-12-09 12:20:50 +08:00
Hilton Chain be9036707e rosenthal: Remove buku-run. [upstreamed]
* rosenthal/packages/web.scm (buku-run): Delete variable.
2022-12-09 10:48:14 +08:00
Hilton Chain 302f06ca61 rosenthal: linux: Switch to customize-linux procedure.
* rosenthal/packages/linux.scm: Define Linux kernel variants with
`customize-linux` procedure.
(linux-xanmod)[arguments]<#:phases>: Avoid input label usage.
(linux-rosenthal)[supported-systems]: Add field.
[description]: Adjusted accordingly.
(linux-hardened-patch,linux-hardened-source,linux-hardened)
(linux-rosenthal-source-deblobed): New variables.
(%xanmod-version): Rename to %linux-version.
(%xanmod-revision): Rename to %xanmod-version.
(%hardened-version): Rename to %hardened-version.
(doc-supported?): Deleted variable.
2022-12-08 18:24:54 +08:00
Hilton Chain 6e43046913 rosenthal: dnsmasq-china-list: Update to commit 4a96e02847ec.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to commit
4a96e02847ec.
2022-12-08 15:50:18 +08:00
Hilton Chain 2c5d1f4588 rosenthal: hyprland: Update to 0.19.1beta.
* rosenthal/packages/wm.scm (hyprland): Update to 0.19.1beta.
2022-12-08 15:48:39 +08:00
Hilton Chain 5469ef7ff2 rosenthal: linux-xanmod: Add linux-hardened patch.
* rosenthal/packages/patches/linux-hardened-xanmod-adaption.patch: New file.
* rosenthal/packages/linux.scm (%hardened-revision)
(linux-hardened-patch-for-xanmod): New variables.
(linux-xanmod-source)[patches]: Add linux-hardened-patch-for-xanmod.
2022-12-07 19:55:25 +08:00
Hilton Chain e30e13349f rosenthal: kconfig-hardened-check-dev: Update to commit d361925ba8e7.
* rosenthal/packages/linux.scm (kconfig-hardened-check-dev): Update to commit
d361925ba8e7.
2022-12-07 16:08:54 +08:00
Hilton Chain f3953bfad3 rosenthal: wayland-protocols-1.30: Rename to wayland-protocols-1.31.
* rosenthal/packages/freedesktop.scm (wayland-protocols-1.30): Rename to
wayland-protocols-1.31.
* rosenthal/packages/wm.scm (wlroots-0.16.0,waylock): Adjusted accordingly.
2022-12-07 15:58:10 +08:00
Hilton Chain 8fc703dc04 rosenthal: wayland-protocols-1.30: Update to 1.31.
* rosenthal/packages/freedesktop.scm (wayland-protocols-1.30): Update to 1.31.
2022-12-07 15:54:42 +08:00
Hilton Chain b041068595 rosenthal: hyprland: Update to 0.19.0beta.
* rosenthal/packages/wm.scm (hyprland): Update to 0.19.0beta.
[inputs]: Add hyprland-protocols.
Replace wlroots-0.16.0 with wlroots-dev.
2022-12-07 15:39:56 +08:00
Hilton Chain 224c3307fa rosenthal: Add hyprland-protocols.
* rosenthal/packages/wm.scm (hyprland-protocols): New variable.
2022-12-07 15:39:45 +08:00
Hilton Chain 633d63c485 rosenthal: wlroots-dev: Update to commit 86fc2199f85a.
* rosenthal/packages/wm.scm (wlroots-dev): Update to commit 86fc2199f85a.
2022-12-07 15:39:13 +08:00
Hilton Chain 1f7ca21826 rosenthal: emacs-doom-modeline-dev: Update to commit d0cb6de14a71.
* rosenthal/packages/emacs-xyz.scm (emacs-doom-modeline-dev): Update to commit
d0cb6de14a71.
2022-12-07 15:03:28 +08:00
Hilton Chain 5c02d87d3b rosenthal: emacs-company-dev: Update to commit 6884e3ad7174.
* rosenthal/packages/emacs-xyz.scm (emacs-company-dev): Update to commit
6884e3ad7174.
2022-12-07 14:53:37 +08:00
Hilton Chain 257c5c56ec utils: %rosenthal-base-file-systems: Add /tmp (tmpfs).
* rosenthal/utils/counter-stop.scm (%rosenthal-base-file-systems): Add
/tmp (tmpfs).
2022-12-07 14:52:41 +08:00
Hilton Chain 6f9173ca3d utils: %rosenthal-base-services: Add ntp-service-type and rngd-service.
* rosenthal/utils/counter-stop.scm (%rosenthal-base-services): Add
ntp-service-type and rngd-service.
2022-12-06 19:51:58 +08:00
Hilton Chain e660229753 utils: %rosenthal-base-packages: Add mosh.
* rosenthal/utils/counter-stop.scm (%rosenthal-base-packages): Add mosh.
2022-12-06 19:51:34 +08:00
Hilton Chain caa37db34a rosenthal: dnsmasq-china-list: Update to commit 840fc72b3cbb.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to commit
840fc72b3cbb.
2022-12-06 18:40:54 +08:00
Hilton Chain e7f392448d bootloader: install-rpi4-arm64-bootloader: Don't depend on Nonguix.
* rosenthal/bootloader/u-boot.scm (install-rpi4-arm64-bootloader): Don't
depend on Nonguix.
2022-12-06 18:00:15 +08:00
Hilton Chain a1e7e1df3c services: Add smartdns-service-type.
* rosenthal/services/dns.scm: New file.
(smartdns-configuration,smartdns-shepherd-service,smartdns-service-type): New
variables.
2022-12-06 17:59:36 +08:00
Hilton Chain 5e809cd80d rosenthal: smartdns: Update to 39.
* rosenthal/packages/dns.scm (smartdns): Update to 39.
2022-12-06 16:32:06 +08:00
Hilton Chain f8aacd14fa bootloader: Fix modules related build issue.
* rosenthal/bootloader/u-boot.scm: Fix modules related build issue.
* rosenthal/packages/gnome-xyz.scm: Likewise.
2022-12-06 14:06:35 +08:00
Hilton Chain 74501fd33a utils: %rosenthal-base-services: Remove nftables-service-type.
* rosenthal/utils/counter-stop.scm (%rosenthal-base-services): Remove
nftables-service-type.
2022-12-06 13:08:05 +08:00
Hilton Chain 4b6fab01ca bootloader: Add u-boot-rpi4-arm64-bootloader.
* rosenthal/bootloader/u-boot.scm: New file.
(%rpi4-arm64-boot-config,install-rpi4-arm64-bootloader)
(u-boot-rpi4-arm64-bootloader): New variables.
2022-12-06 18:48:45 +08:00
Hilton Chain 0b31c973e8 rosenthal: Add u-boot-rpi-arm64.
* rosenthal/packages/bootloaders.scm: New file.
(u-boot-rpi-arm64): New variable.
2022-12-06 06:45:32 +08:00
Hilton Chain 4c0227fb4a services: Add miniflux-service-type.
* rosenthal/services/child-error.scm (miniflux-configuration)
(%miniflux-accounts,%miniflux-postgresql-role,miniflux-shepherd-service)
(miniflux-service-type): New variables.
2022-12-03 15:40:07 +08:00
Hilton Chain f1d89d66f0 services: Add home-wakapi-service-type.
* rosenthal/services/child-error.scm (home-wakapi-configuration)
(home-wakapi-shepherd-service,home-wakapi-service-type): New variables.
2022-12-03 15:25:52 +08:00
Hilton Chain 8b741c241e services: Add clash-service-type.
* rosenthal/services/child-error.scm (clash-configuration,%clash-accounts)
(clash-activation,clash-shepherd-service,clash-service-type): New variables.
2022-12-03 15:24:50 +08:00
Hilton Chain 9660dc4e92 services: Add qbittorrent-service-type.
* rosenthal/services/bittorrent.scm: New file.
(qbittorrent-configuration,%qbittorrent-accounts,qbittorrent-activation)
(qbittorrent-shepherd-service,qbittorrent-service-type): New variables.
2022-12-03 13:59:41 +08:00
Hilton Chain 1f31dedb6f rosenthal: linux-xanmod: Update to 6.0.10.
* rosenthal/packages/linux.scm (%xanmod-version): Update to 6.0.10.
(doc-supported?): New variable.
(linux-xanmod-source,linux-xanmod): Adjusted accordingly.
2022-12-02 22:42:34 +08:00
Hilton Chain 5478467f96 rosenthal: qbittorrent-enhanced-edition-nox: Fix build issue.
* rosenthal/packages/bittorrent.scm (qbittorrent-enhanced-edition-nox)
[arguments]<#:phases>: Delete `wrap-qt` phase.
2022-12-02 21:33:22 +08:00
Hilton Chain 5f28176ab8 rosenthal: qbittorrent-enhanced-edition: Use QT5.
* rosenthal/packages/bittorrent.scm (qbittorrent-enhanced-edition)
(qbittorrent-enhanced-edition-nox): Use QT5.

The WebUI seems unusable when building with QT6...
2022-12-02 21:26:30 +08:00
Hilton Chain f96276ca08 services: iwd-service-type: Fix build issue.
* rosenthal/services/networking.scm (iwd-shepherd-service,iwd-etc-service):
Switch back to `match-lambda`.
(iwd-configuration,iwd-service-type): Add description.
2022-12-02 21:01:41 +08:00
Hilton Chain abeacc8731 services: cloudflare-tunnel-shepherd-service: Inline tunnel options.
* rosenthal/services/child-error.scm (cloudflare-tunnel-shepherd-service):
Inline tunnel-options.
2022-12-01 23:02:20 +08:00
Hilton Chain 6f168bc772 services: cloudflare-tunnel-configuration: Add extra-tunnel-options.
* rosenthal/services/child-error.scm (cloudflare-tunnel-configuration): Add
extra-tunnel-options.
(cloudflare-tunnel-shepherd-service): Honor it.
2022-12-01 23:00:29 +08:00
Hilton Chain 6dc8bbfa04 services: cloudflare-tunnel-configuration: Define with define-configuration.
* rosenthal/services/child-error.scm (cloudflare-tunnel-configuration): Change
to `define-configuration` form.
2022-12-01 22:47:18 +08:00
Hilton Chain 0c0571462b services: cloudflare-tunnel-service-type: Add %cloudflare-tunnel-accounts.
* rosenthal/services/child-error.scm (%cloudflare-tunnel-accounts): New
variable.
(cloudflare-tunnel-shepherd-service,cloudflare-tunnel-service-type): Honor it.
2022-12-01 22:36:03 +08:00
Hilton Chain 2370498264 services: cloudflare-tunnel-shepherd-service: Reduce requirements.
* rosenthal/services/child-error (cloudflare-tunnel-shepherd-service)
[requirement]: Remove loopback and user-processes.
2022-12-01 15:51:26 +08:00
Hilton Chain c41676ed0d rosenthal: wlroots-dev: Update to commit f103dc74d89c.
* rosenthal/packages/wm.scm (wlroots-dev): Update to commit f103dc74d89c.
2022-12-01 15:02:35 +08:00
Hilton Chain 08744e6b0e rosenthal: emacs-doom-modeline-dev: Update to commit 9f6ca7d61d89.
* rosenthal/packages/emacs-xyz.scm (emacs-doom-modeline-dev): Update to commit
9f6ca7d61d89.
2022-12-01 00:00:41 +08:00
Hilton Chain b8dc8360e3 rosenthal: emacs-company-dev: Update to commit 00a739f9684c.
* rosenthal/packages/emacs-xyz.scm (emacs-company-dev): Update to commit
00a739f9684c.
2022-11-30 23:59:49 +08:00
Hilton Chain 6cb376d52e rosenthal: dnsmasq-china-list: Update to commit 6e292dc0630f.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to commit
6e292dc0630f.
2022-11-30 23:44:17 +08:00
Hilton Chain 93baac80be rosenthal: Remove python-pynixutil. [upstreamed]
* rosenthal/packages/python-xyz.scm (python-pynixutil): Delete variable.
2022-11-29 20:55:59 +08:00
Hilton Chain 5dfcd408b7 rosenthal: Remove emacs-org-rainbow-tags. [upstreamed]
* rosenthal/packages/emacs-xyz.scm (emacs-org-rainbow-tags): Delete variable.
2022-11-27 12:56:32 +08:00
Hilton Chain d4a52bd492 utils: %rosenthal-base-packages: Don't remove less.
* rosenthal/utils/counter-stop.scm (%rosenthal-base-packages): Keep less.
2022-11-26 19:49:04 +08:00
Hilton Chain 029d265317 rosenthal: dnsmasq-china-list: Update to commit d52acc37309e.
* rosenthal/packages/dns.scm (dnsmasq-china-list): Update to commit
d52acc37309e.
2022-11-26 19:46:13 +08:00
Hilton Chain 7916cbb6fe rosenthal: emacs-doom-modeline-dev: Update to commit 986e9e0ab14a.
* rosenthal/packages/emacs-xyz.scm (emacs-doom-modeline-dev): Update to commit
986e9e0ab14a.
2022-11-26 19:44:06 +08:00
Hilton Chain 1be5726510 Add common variables shared across my configurations.
* rosenthal/utils/counter-stop.scm: New file.
2022-11-26 10:56:57 +08:00
Hilton Chain 2bc27145b3 Import seatd-service-type from Guix.
* rosenthal/services/desktop.scm: New file.
(seatd-configuration,seatd-service-type): New variables.
<https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm>

Removed hard requirements for control group file systems.
2022-11-25 23:22:29 +08:00
Hilton Chain 0dff44354a Add contents extracted from Kicksecure's resources.
* rosenthal/utils/kicksecure.scm: New file.
(%kicksecure-kernel-arguments,%kicksecure-sysctl-rules): New variables.
<https://github.com/kicksecure/security-misc>

See also: <https://www.kicksecure.com/wiki/Security-misc>
2022-11-25 19:52:50 +08:00
Hilton Chain 76acf97ec6 rosenthal: linux-xanmod: Don't build docs.
* rosenthal/packages/linux.scm (linux-xanmod)[arguments]<#:phases>: Don't
build docs.
2022-11-25 19:41:40 +08:00
Hilton Chain 2b8d1603a7 services: Add cloudflare-tunnel-service-type.
rosenthal/services/child-error.scm: New file.
(<cloudflare-tunnel-configuration>): New data type.
(cloudflare-tunnel-service-type): New variable.
2022-11-25 19:37:08 +08:00
Hilton Chain bbbdd6afec Import iwd-service-type from Nikita Domnitskii's dotfiles.
* LICENSES/BSD-3-Clause/2021-Nikita_Domnitskii.txt: New file.
* rosenthal/services/networking.scm: New file imported from krevedkokun's dotfiles.
<https://git.sr.ht/~krevedkokun/dotfiles/tree/master/item/channel/system/services/networking.scm>
2022-11-25 19:37:06 +08:00
Hilton Chain b61194a46b Import home-services-utils from rde.
* rosenthal/utils/home-services-utils.scm: New file imported from rde.
<https://git.sr.ht/~abcdw/rde/tree/master/item/gnu/home-services-utils.scm>
2022-11-25 19:14:59 +08:00
Hilton Chain 0b597e65c6 rosenthal: Add waylock.
* rosenthal/packages/wm.scm (waylock): New variable.
2022-11-25 15:39:52 +08:00
Hilton Chain 4c36462bef rosenthal: Add grimblast.
* rosenthal/packages/wm.scm (grimblast): New variable.
2022-11-25 15:39:29 +08:00
Hilton Chain 9be629c953 rosenthal: Add hyprland.
* rosenthal/packages/wm.scm (hyprland-unbundle-wlroots-patch,hyprland): New
variables.
2022-11-25 15:38:22 +08:00
Hilton Chain 3702505c9c rosenthal: Add wlroots-dev.
* rosenthal/packages/wm.scm (wlroots-dev): New variable.
2022-11-25 15:35:57 +08:00
Hilton Chain ecd7d744e4 rosenthal: Add wlroots-0.16.0.
* rosenthal/packages/wm.scm: New file.
(wlroots-0.16.0): New variable.
2022-11-25 15:35:37 +08:00
Hilton Chain 6e6d098eb9 rosenthal: Add pixman-0.42.2.
* rosenthal/packages/xdisorg.scm (pixman-0.42.2): New variable.
2022-11-25 15:33:39 +08:00
Hilton Chain bfee3c2dd3 rosenthal: Add libxkbcommon-minimal.
* rosenthal/packages/xdisorg.scm (libxkbcommon-minimal): New variable.
2022-11-25 15:33:28 +08:00
Hilton Chain 24b3016230 rosenthal: Add libxkbcommon-1.4.1.
* rosenthal/packages/xdisorg.scm (libxkbcommon-1.4.1): New variable.
2022-11-25 15:33:20 +08:00
Hilton Chain 8794ae8697 rosenthal: Add libdrm-2.4.114.
* rosenthal/packages/xdisorg.scm: New file.
(libdrm-2.4.114): New variable.
2022-11-25 15:33:03 +08:00
Hilton Chain 2f2deb4d77 rosenthal: Add buku-run-dev.
* rosenthal/packages/web.scm (buku-run-dev): New variable.
2022-11-25 15:26:50 +08:00
Hilton Chain 142f7c1b20 rosenthal: Add buku-run.
* rosenthal/packages/web.scm: New file.
(buku-run): New variable.
2022-11-25 15:26:40 +08:00
Hilton Chain c062a2eecf rosenthal: Add bubblewrap-0.7.0.
* rosenthal/packages/virtualization.scm: New file.
(bubblewrap-0.7.0): New variable.
2022-11-25 15:23:33 +08:00
Hilton Chain 145ebf94aa rosenthal: Add libva-nox.
* rosenthal/packages/video.scm (libva-nox): New variable.
2022-11-25 15:22:53 +08:00
Hilton Chain bd4f4e7da0 rosenthal: Add libva-2.16.0.
* rosenthal/packages/video.scm: New file.
(libva-2.16.0): New variable.
2022-11-25 15:22:37 +08:00
Hilton Chain 8496689f75 rosenthal: Add dropbear/static.
* rosenthal/packages/ssh.scm: New file.
(dropbear/static): New variable.
2022-11-25 15:21:13 +08:00
Hilton Chain 282ce91a06 rosenthal: Add python-pynixutil.
* rosenthal/packages/python-xyz.scm: New file.
(python-pynixutil): New variable.
2022-11-25 15:20:16 +08:00
Hilton Chain 8c82286bfc rosenthal: Add kconfig-hardened-check-dev.
* rosenthal/packages/linux.scm (kconfig-hardened-check-dev): New variable.
2022-11-25 15:20:15 +08:00
Hilton Chain b953b1c7e9 rosenthal: Add linux-rosenthal.
* rosenthal/packages/aux-files/config.zen3-dorphine: New file.
* rosenthal/packages/patches/linux-libre-deblob-check-omit-error.patch: New
file.
* rosenthal/packages/patches/linux-libre-deblob-keep-needed.patch: New file.
* rosenthal/packages/linux.scm (deblob-scripts,make-linux-libre-source)
(linux-rosenthal-deblob-scripts,linux-rosenthal-source,linux-rosenthal): New
variables.
2022-11-25 15:20:15 +08:00
Hilton Chain 146bc7f068 rosenthal: Add linux-xanmod.
* rosenthal/packages/linux.scm: New file.
(computed-origin-method,%upstream-linux-source,%cflags,%ldflags)
(%xanmod-version,%xanmod-revision,extract-xanmod-patch,linux-xanmod-patch)
(linux-xanmod-source,linux-xanmod): New variables.
2022-11-25 15:20:15 +08:00
Hilton Chain 7fbe28af8b rosenthal: Add qogir-icon-theme.
* rosenthal/packages/gnome-xyz.scm: New file.
(qogir-icon-theme): New variable.
2022-11-25 15:20:10 +08:00
Hilton Chain 65b564a33c rosenthal: Add wayland-protocols-1.30.
* rosenthal/packages/freedesktop.scm (wayland-protocols-1.30): New variable.
2022-11-25 14:51:49 +08:00
Hilton Chain d6c5ca89f7 rosenthal: Add wayland-1.21.0.
* rosenthal/packages/freedesktop.scm: New file
(wayland-1.21.0): New variable.
2022-11-25 14:51:49 +08:00
Hilton Chain 84837df370 rosenthal: Add flashrom-dev.
* rosenthal/packages/flashing-tools.scm: New file.
(flashrom-dev): New variable.
2022-11-25 14:51:49 +08:00
Hilton Chain 62921a9228 rosenthal: Add emacs-org-rainbow-tags-dev.
* rosenthal/packages/emacs-xyz.scm (emacs-org-rainbow-tags-dev): New variable.
2022-11-25 14:51:49 +08:00
Hilton Chain 02dcbbf930 rosenthal: Add emacs-org-rainbow-tags.
* rosenthal/packages/emacs-xyz.scm (emacs-org-rainbow-tags): New variable.
2022-11-25 14:51:48 +08:00
Hilton Chain 16ea01ca3c rosenthal: Add emacs-wakatime-mode.
* rosenthal/packages/emacs-xyz.scm (emacs-wakatime-mode): New variable.
2022-11-25 14:51:48 +08:00
Hilton Chain 6acd6d64a1 rosenthal: Add emacs-rime-dev.
* rosenthal/packages/emacs-xyz.scm (emacs-rime-dev): New variable.
2022-11-25 14:51:48 +08:00
Hilton Chain 0029ca1592 rosenthal: Add emacs-macrostep-geiser-dev.
* rosenthal/packages/emacs-xyz.scm (emacs-macrostep-geiser-dev): New variable.
2022-11-25 14:51:48 +08:00
Hilton Chain 340bdd232f rosenthal: Add emacs-god-mode-dev.
* rosenthal/packages/emacs-xyz.scm (emacs-god-mode-dev): New variable.
2022-11-25 14:51:48 +08:00
Hilton Chain 17fd8f49f1 rosenthal: Add emacs-doom-modeline-dev.
* rosenthal/packages/emacs-xyz.scm (emacs-doom-modeline-dev): New variable.
2022-11-25 14:51:48 +08:00
Hilton Chain d67cb6b312 rosenthal: Add emacs-company-dev.
* rosenthal/packages/emacs-xyz.scm: New file.
(emacs-company-dev): New variable.
2022-11-25 14:51:48 +08:00
Hilton Chain 61d6698fbf rosenthal: Add smartdns.
* rosenthal/packages/dns.scm (smartdns): New variable.
2022-11-25 14:51:48 +08:00
Hilton Chain b94ca27982 rosenthal: Add dnsmasq-china-list.
* rosenthal/packages/dns.scm: New file.
(dnsmasq-china-list): New variable.
2022-11-25 14:51:47 +08:00
Hilton Chain 6c9c8abcae rosenthal: Add busybox/static.
* rosenthal/packages/busybox.scm: New file.
(busybox/static): New variable.
2022-11-25 14:51:47 +08:00
Hilton Chain dd0b4c69d1 rosenthal: Add qbittorrent-enhanced-edition-nox.
* rosenthal/packages/bittorrent.scm (qbittorrent-enhanced-edition-nox): New
variable.
2022-11-25 14:51:47 +08:00
Hilton Chain 771fd649a3 rosenthal: Add qbittorrent-enhanced-edition.
* rosenthal/packages/bittorrent.scm: New file.
(qbittorrent-enhanced-edition): New variable.
2022-11-25 14:51:47 +08:00
Hilton Chain 579e2b36bb rosenthal: Add seatd-sans-logind.
* rosenthal/packages/admin.scm (seatd-sans-logind): New variable.
2022-11-25 14:51:47 +08:00
Hilton Chain c0d8f03cb9 rosenthal: Add libseat-sans-logind.
* rosenthal/packages/admin.scm: New file.
(libseat-sans-logind): New variable.
2022-11-25 14:51:47 +08:00
Hilton Chain fe77624a03 Add README.org.
* README.org: New file.
2022-11-25 14:51:41 +08:00
Hilton Chain 7677db7633 Initial commit.
* .gitattributes: New file.
* .guix-authorizations: New file.
* .guix-channel: New file.
* LICENSES/GPL-3.0.txt: New file.
* pre-inst-env: New file.
2022-11-25 14:50:51 +08:00
37 changed files with 9761 additions and 55 deletions

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
;; -*- mode: scheme -*-
;; SPDX-FileCopyrightText: 2022, 2024 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: CC0-1.0
(authorizations
(version 0)
(;; primary: "220F 98D9 5E86 204C 0036 DA7B 6DEC 4360 408B 4185"
("F4C2 D1DF 3FDE EA63 D1D3 0776 ACC6 6D09 CA52 8292"
(name "Hilton Chain"))))
+11
View File
@@ -0,0 +1,11 @@
;; -*- mode: scheme -*-
;; SPDX-FileCopyrightText: 2022, 2023, 2025 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: CC0-1.0
(channel
(version 0)
(directory "modules")
(keyring-reference "keyring")
(url "https://codeberg.org/hako/rosenthal.git")
(news-file "NEWS"))
+121
View File
@@ -0,0 +1,121 @@
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.
For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:
i. the right to reproduce, adapt, distribute, perform, display,
communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data
in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation
thereof, including any amended or successor version of such
directive); and
vii. other similar, equivalent or corresponding rights throughout the
world based on applicable law or treaty, and any national
implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or
warranties of any kind concerning the Work, express, implied,
statutory or otherwise, including without limitation warranties of
title, merchantability, fitness for a particular purpose, non
infringement, or the absence of latent or other defects, accuracy, or
the present or absence of errors, whether or not discoverable, all to
the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person's Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.
+232
View File
@@ -0,0 +1,232 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS
0. Definitions.
“This License” refers to version 3 of the GNU General Public License.
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
A “covered work” means either the unmodified Program or a work based on the Program.
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program 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.
This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.
+49
View File
@@ -0,0 +1,49 @@
;; -*- mode: scheme -*-
;; SPDX-FileCopyrightText: 2023, 2024 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(channel-news
(version 0)
(entry ;2024-12-08
(commit "162defb8388b4099f6ae8699ec8872f845a2481e")
(title (en "Hyprland upstreamed")
(zh "Hyprland 已合併至上游"))
(body (en "All Hyprland packages have been upstreamed to Guix and deleted in
Rosenthal.")
(zh "所有 Hyprland 相關軟件包已合併至 Guix 上游並在 Rosenthal 中刪除。")))
(entry ;2023-07-01
(commit "ed1058c688a2655521beeba3e6295db2c0c1f274")
(title (en "@code{qbittorrent-enhanced} upstreamed")
(zh "@code{qbittorrent-enhanced} 已合併至上游"))
(body (en "Packages @code{qbittorrent-enhanced} and
@code{qbittorrent-enhanced-nox} are upstreamed to Guix, they are now available
in module @code{(gnu packages bittorrent)}. Previously deprecated packages
@code{qbittorrent-enhanced-edition} and @code{qbittorrent-enhanced-edition-nox}
are no longer available.")
(zh "@code{qbittorrent-enhanced} 與 @code{qbittorrent-enhanced-nox}
已合併至 Guix 上游 @code{(gnu packages bittorrent)} 模塊。先前標記爲棄用的軟件包
@code{qbittorrent-enhanced-edition} 及 @code{qbittorrent-enhanced-edition-nox}
已不再可用。")))
(entry ;2023-07-01
(commit "17106e7ed3d21544dfd80e77aa785e1e5781fb1c")
(title (en "@code{linux-xanmod} merged to Nonguix")
(zh "@code{linux-xanmod} 已合併至 Nonguix"))
(body (en "Package @code{linux-xanmod} has been merged to channel
@url{https://gitlab.com/nonguix/nonguix, Nonguix}, it's not available in
Rosenthal any more.")
(zh "@code{linux-xanmod} 已移出 Rosenthal,合併至
@url{https://gitlab.com/nonguix/nonguix, Nonguix} 頻道。")))
(entry ;2023-06-17
(commit "c3ed521085962524d78f4c7007e7d77535ae085e")
(title (en "Channel moved to Codeberg")
(zh "頻道已移至 Codeberg"))
(body (en "Rosenthal has been moved to Codeberg and the GitHub repository
will remain as a mirror. Changing the URL in your @file{channels.scm} to
@url{https://codeberg.org/hako/rosenthal.git} is recommended.")
(zh "Rosenthal 頻道已移至 Codeberg,先前的 GitHub 倉庫將用作鏡像。建議修改
@file{channels.scm} 內 URL 爲 @url{https://codeberg.org/hako/rosenthal.git}。"))))
+42
View File
@@ -0,0 +1,42 @@
# SPDX-FileCopyrightText: 2022, 2024, 2025 Hilton Chain <hako@ultrarare.space>
# SPDX-License-Identifier: CC0-1.0
#+TITLE: Rosenthal - A certain Guix channel
Rosenthal is a Guix channel (see [[https://guix.gnu.org/manual/devel/en/html_node/Channels.html][Channels]] in /GNU Guix Reference Manual/) created for experiments. It currently holds some packages and services not ready for upstreaming to [[https://guix.gnu.org/][GNU Guix]].
You can use [[https://toys.whereis.social/][toys]] to search packages and services from Rosenthal and other Guix channels.
Note that all contents in this channel are subject to change and may be deleted **at any time**, please [[https://codeberg.org/hako/Rosenthal/issues][report an issue]] if you are affected.
Channel definition:
#+begin_src scheme
(channel
(name 'rosenthal)
(url "https://codeberg.org/hako/rosenthal.git")
(branch "trunk")
(introduction
(make-channel-introduction
"7677db76330121a901604dfbad19077893865f35"
(openpgp-fingerprint
"13E7 6CD6 E649 C28C 3385 4DF5 5E5A A665 6149 17F7"))))
#+end_src
For configuration, see [[https://guix.gnu.org/manual/devel/en/html_node/Specifying-Additional-Channels.html][Specifying Additional Channels]], [[https://guix.gnu.org/manual/devel/en/html_node/Customizing-the-System_002dWide-Guix.html][Customizing the System-Wide Guix]] and [[https://guix.gnu.org/manual/devel/en/html_node/Guix-Home-Services.html#index-home_002dchannels_002dservice_002dtype][~home-channels-service-type~]] in /GNU Guix Reference Manual/.
Substitutes (see [[https://guix.gnu.org/manual/devel/en/html_node/Substitutes.html][Substitutes]] in /GNU Guix Reference Manual/) are available on [[https://substitute.boiledscript.com/][~https://substitute.boiledscript.com~]], with the following signing key:
#+begin_src scheme
(public-key
(ecc
(curve Ed25519)
(q #374EC58F5F2EC0412431723AF2D527AD626B049D657B5633AAAEBC694F3E33F9#)))
#+end_src
Wiki: https://codeberg.org/hako/Rosenthal/wiki
Build status: https://ci.boiledscript.com/jobset/rosenthal
Git repositories:
- Codeberg: https://codeberg.org/hako/Rosenthal
- (backup) URSpace VCS: https://git.boiledscript.com/hako/Rosenthal
- (mirror) Github: https://github.com/rakino/Rosenthal
+35
View File
@@ -0,0 +1,35 @@
;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: CC0-1.0
(specifications->manifest
'(
"atuin"
"cloudflare-warp-bin"
"cloudflared"
"dinit"
"komga-bin"
"mihomo-bin"
"navidrome-bin"
"niri"
"shadow-tls-bin"
"sing-box-bin"
"tree-sitter-yaml"
"wakapi-bin"
"wakatime-cli-bin"
"xwayland-satellite"
;; TODO: Updater unavailable.
;; "bitwarden-icecat"
;; "miniflux-injector-icecat"
;; "sidebery-icecat"
;; "clash-bin"
;; "dnsmasq-china-list"
;; "emacs-pcmpl-tailscale"
;; "emacs-wakatime-mode"
;; "forgejo"
;; "grub-efi-luks2"
;; "hugo"
;; "socks2http"
;; "tailscale"
))
-29
View File
@@ -1,29 +0,0 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEX0JnRRYJKwYBBAHaRw8BAQdAAVK4rxRUJLcuJmVczYnjdU5wMzhTM2SDY42y
yRpMXtGIeAQgFggAIBYhBBPnbNbmScKMM4VN9V5apmVhSRf3BQJjvuJxAh0BAAoJ
EF5apmVhSRf33kYBAKvz1BKp+SWiKnAF4xCCdktj+yK8dWWjgd8BzXMZukgKAQDY
f9RErqLzQxzsNIkiAN16oAS0hRvpXa5fOUJAADxgBLQjSGlsdG9uIENoYWluIDxo
YWtvQHVsdHJhcmFyZS5zcGFjZT6IkAQTFgoAOAIbAwULCQgHAgYVCgkICwIEFgID
AQIeAQIXgBYhBBPnbNbmScKMM4VN9V5apmVhSRf3BQJjvqgrAAoJEF5apmVhSRf3
9FIA/1G9sWit+1LFvqoc5ZS3UJrS8SjqUKktQPtuuUvD76RWAQC8gP2/UlLa1gk5
PLyJewPNIytwfS5rYqw9mO3LKF5zBLg4BF9CZ0USCisGAQQBl1UBBQEBB0DaXDt5
85Mvfi/YJZhYraDRmJNCV4MYht1tzIucwzAaBAMBCAeIfgQYFgoAJgIbDBYhBBPn
bNbmScKMM4VN9V5apmVhSRf3BQJjvYE2BQkGXE1xAAoJEF5apmVhSRf3vmIBAN/R
VVu/GXAcoMbycaHGNrfv953wr3+gkuA1EHpOYSzPAP9e7tAoZS/9koBP77qHTfFv
qlB8VrlT8kC1xUUTSqtZDLkCDQRfSK4lARAAsn6zp01vZhXtk9OAG27HXXcxVEyC
d8Rc3aK7npUaojrQmmwgxnpc91Mu21QweYuOL06mJmYVnH0waTD+jjJekVBM2J4Z
EINVzB9SqrBRBbzQfGnIZxNSnJB0mJh0f38vDzetdB/SVAA4XOH4xnhsYoe68diE
FI+gr7LTxT4vH41rO058jm+YrY1CNWYGUtMCymJOLXzOHErPOl5AbXgyci3bcU4U
47Wbe2hW6ZXUXl6rbOxqTtcrgSQyqvmEaoE/5e9E1KgTm2BtrqHnk08PVVQwtG9n
TkUN67abrVDXzob44bJzQahwhRSN0+NbzQIxrxtgzVm7R2kGwVIz3LG6R2PpuPU5
DVisTVmCH2xSz2AB9CpC6Ka3m/rI9eSnB8jLYMIuZlx4HIlmR6LWwlafQ6R8FT/4
45lW7su13v8VOmQsxo0Rbt3qcpfq/+Xqv7klgJePy7+Bl+3mQHu2dDFBv6B+RC8K
IrThJKwYFI4ueqpJyTQxG5D2hBDtCY4Ir4lZt/skR52YkowTNVfraIEzFZtXZKKa
wn73vC9VXezWw8Y7KjXJoDsSDqJeiLar+yNHialGzUXCRZPpdjmd8gGsVXlR19cO
LpXgHT1nvxEJ46v7HPgth//qfslzymnLIKB0Fv2oQ9FF0fHRkI4n4WWDuGTYH2ow
fU6kV03lOICQH3MAEQEAAYh+BBgWCgAmAhsgFiEEE+ds1uZJwowzhU31XlqmZWFJ
F/cFAmO9gTYFCQZWBpEACgkQXlqmZWFJF/c3aQEA8KmcNz8Qoq7Se3sWBIiC5pkI
SfQok5Xx0Bj0G5oxHO0BAN8NBPgBWaiFuMPzlfGYZRvgNT11yJWImiEd8US7kDAM
=C6KE
-----END PGP PUBLIC KEY BLOCK-----
-26
View File
@@ -1,26 +0,0 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEY76vuxYJKwYBBAHaRw8BAQdAAPIY7wvHRRZ+OoHYHErO6mago//xW3q2K2dk
aCBt/Y+0I0hpbHRvbiBDaGFpbiA8aGFrb0B1bHRyYXJhcmUuc3BhY2U+iJAEExYI
ADgWIQQiD5jZXoYgTAA22ntt7ENgQItBhQUCY76vuwIbAQULCQgHAgYVCgkICwIE
FgIDAQIeAQIXgAAKCRBt7ENgQItBhTwwAP9oCOAPHWXX1nncKKanSFXmg0Iu4DRk
PLp6HTn2nCjVUgEAgq3clIMpcxufXJUL1ivA54jV/kRaPMYZ2059tC2GRwOIdQQQ
FggAHRYhBBPnbNbmScKMM4VN9V5apmVhSRf3BQJjvtMBAAoJEF5apmVhSRf3NnUA
/Al++sCYE50J88GEIpUycQ+A+P0371tdPaNmgzKge6yLAP9DMFiLjZb1q5mp1Kxr
nEW7SziKiZSXbm+dxY3EPyg3C7gzBGO+0cwWCSsGAQQB2kcPAQEHQDocmVXQu4sG
1nY5GrIQuVOlTLTpUxvk2r2vQNCr+gOKiPUEGBYIACYCGwIWIQQiD5jZXoYgTAA2
2ntt7ENgQItBhQUCY77SGgUJAeEzzgCBdiAEGRYIAB0WIQT0wtHfP97qY9HTB3as
xm0JylKCkgUCY77RzAAKCRCsxm0JylKCkjfsAQC+jPs2l5O1jxHBIJSF+Lba9yO8
2snyTGm7puf7TkunIQD+Kph74xJ9/a89sKEQb1fU9C/LfI+Q7y8k/paa5p5XCA0J
EG3sQ2BAi0GF8qwBAONLPS+PqncyxOfKLcK28pG9Xrmt12Tt8sEgyhJwj56SAP4v
H5SBgrnwFdWeSbiA9WzaUHIUwTGA1JWR7f2zV0RwALg4BGO+0eUSCisGAQQBl1UB
BQEBB0CR+twFCJIziLy4YIqdBNWw+D4PmntXZdg6CyseZNEvDQMBCAeIfgQYFggA
JgIbDBYhBCIPmNlehiBMADbae23sQ2BAi0GFBQJjvtIkBQkB4TO1AAoJEG3sQ2BA
i0GF5bgA/iExz0yLH+PflRVVusfHWv4ThDFHnHuxrwC4YytaFhr1AQC50TIvLxHD
rlBvCb53tk6aCBY2xcuEQ5DNbIhmRv9MArgzBGO+0fkWCSsGAQQB2kcPAQEHQFcT
j1N3cL/bh2Uvwh5/YubhZplPFnvGk/iVHQs3FWV2iH4EGBYIACYCGyAWIQQiD5jZ
XoYgTAA22ntt7ENgQItBhQUCY77SJAUJAeEzoQAKCRBt7ENgQItBhQLOAP433Y//
b4tMpPrr3DlD3kxNxpQ7kcpIkKaajI/rby/qjQD+JAGjhGut4/x9MYPXLbNW/wqo
D+UMrp0bQ/Lkc72J3gM=
=AqnV
-----END PGP PUBLIC KEY BLOCK-----
@@ -0,0 +1,41 @@
;; SPDX-FileCopyrightText: 2024, 2025 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (guix import rosenthal-updaters)
#:use-module (srfi srfi-71)
#:use-module (web client)
#:use-module (guix packages)
#:use-module (guix records)
#:use-module (guix upstream)
#:export (%cloudflare-warp-updater))
(define* (cloudflare-warp-import pkg #:key version partial-version?)
(let* ((source-uri (assq-ref (package-properties pkg) 'release-monitoring-url))
(response port (http-get source-uri #:streaming? #t))
(content (recutils->alist port))
(_ (close port))
(name (package-upstream-name pkg))
(newest-version
(or version
(assoc-ref content "Version")))
(url
(if version
(string-append "https://pkg.cloudflareclient.com/"
"pool/bookworm/main/c/cloudflare-warp/"
"cloudflare-warp_" version "_amd64.deb")
(string-append "https://pkg.cloudflareclient.com/"
(assoc-ref content "Filename")))))
(upstream-source
(package name)
(version newest-version)
(urls (list url)))))
(define %cloudflare-warp-updater
(upstream-updater
(name 'cloudflare-warp)
(description "Updater for Cloudflare WARP client")
(pred (lambda (package)
(string=? "cloudflare-warp" (package-upstream-name package))))
(import cloudflare-warp-import)))
+23
View File
@@ -0,0 +1,23 @@
;; SPDX-FileCopyrightText: 2023 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal bootloader grub)
#:use-module (gnu bootloader)
#:use-module (gnu bootloader grub)
#:use-module (rosenthal packages bootloaders)
#:export (grub-efi-luks2-bootloader
grub-efi-luks2-removable-bootloader))
(define grub-efi-luks2-bootloader
(bootloader
(inherit grub-efi-bootloader)
;; NOTE: Don't change the name. Generation switching code only knows
;; bootloaders defined in (gnu bootloader grub).
(name 'grub-efi)
(package grub-efi-luks2)))
(define grub-efi-luks2-removable-bootloader
(bootloader
(inherit grub-efi-removable-bootloader)
(package grub-efi-luks2)))
+66
View File
@@ -0,0 +1,66 @@
;;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Copyright © 2015, 2018 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2025 Maxim Cournoyer <maxim.cournoyer@gmail.com>
(define-module (rosenthal packages)
#:use-module (gnu packages)
#:use-module (guix diagnostics)
#:use-module (guix i18n)
#:use-module (ice-9 match)
#:use-module (srfi srfi-34)
#:replace (%patch-path
search-patch)
#:export (rosenthal-patches))
;;; Commentary:
;;;
;;; This module refines the default value of some parameters from (gnu
;;; packages) and the syntax/procedures using those. This allows
;;; 'search-paths' and friends to work without any user intervention.
;;;
;;; Code:
(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 %patch-path
;; Define it after '%package-module-path' so that '%load-path' contains user
;; directories, allowing patches in $GUIX_PACKAGE_PATH to be found.
(make-parameter
(map (lambda (directory)
(if (string=? directory %rosenthal-root-directory)
(string-append directory "/rosenthal/packages/patches")
directory))
%load-path)))
;;; XXX: The following must be redefined to make use of the overridden
;;; %patch-path parameter above.
(define (search-patch file-name)
"Search the patch FILE-NAME. Raise an error if not found."
(or (search-path (%patch-path) file-name)
(raise (formatted-message (G_ "~a: patch not found")
file-name))))
;;; XXX: `search-patches' being syntax, it can't be overridden by the module
;;; system, or so it seems, so we simply rename it.
(define-syntax-rule (rosenthal-patches file-name ...)
"Return the list of absolute file names corresponding to each
FILE-NAME found in %PATCH-PATH."
(list (search-patch file-name) ...))
+114
View File
@@ -0,0 +1,114 @@
;; SPDX-FileCopyrightText: 2022, 2025 Hilton Chain <hako@ultrarare.space>
;; SPDX-FileCopyrightText: 2025 William Goodspeed
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages admin)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix git-download)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
#:use-module (gnu packages admin)
#:use-module (gnu packages linux)
#:use-module (gnu packages m4)
#:use-module (gnu packages pkg-config))
(define-public dinit
(package
(name "dinit")
(version "0.19.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/davmac314/dinit")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0gw5jvh9bxnnwdv7ajscs03d6x2hcs9i3hxkqfjs19d4wr5rghyq"))))
(build-system meson-build-system)
(arguments
(list #:configure-flags
#~(list "-Dshutdown-prefix=dinit-"
"-Dunit-tests=true"
"-Digr-tests=true"
(string-append "-Ddinit-sbindir=" #$output "/sbin"))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/shutdown.cc"
(("(/sbin/swapoff|/bin/umount)" path)
(search-input-file inputs path))))))))
(native-inputs (list m4))
(inputs (list util-linux))
(home-page "https://davmac.org/projects/dinit/")
(synopsis "Service manager with dependency management")
(description
"Dinit is a service manager for Unix-like operating systems that allows
the user to manage services with dependencies and parallel startup.")
(license license:asl2.0)))
(define-public libseat-sans-logind
(let ((base libseat))
(package
(inherit base)
(name "libseat-sans-logind")
(arguments
(substitute-keyword-arguments (package-arguments base)
((#:configure-flags configure-flags)
#~(append #$configure-flags
(list "-Dlibseat-logind=disabled")))))
(propagated-inputs '()))))
(define-public pam-dumb-runtime-dir
(package
(name "pam-dumb-runtime-dir")
(version "1.0.4")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ifreund/dumb_runtime_dir")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0nrxhvbh3bs4pi4f5h03zw1p1ys19qmmlx263ysly8302wkxk1m4"))))
(build-system gnu-build-system)
(arguments
(list #:tests? #f ;No tests.
#:make-flags
#~(list (string-append "CC=" #$(cc-for-target))
(string-append "DESTDIR=" #$output)
"PREFIX=")
#:phases
#~(modify-phases %standard-phases
;; No configure script.
(delete 'configure))))
(native-inputs (list pkg-config))
(inputs (list linux-pam))
(home-page "https://github.com/ifreund/dumb_runtime_dir")
(synopsis "Create @code{XDG_RUNTIME_DIR} on login and never remove it")
(description
"This package creates an @code{XDG_RUNTIME_DIR} directory on login per
the freedesktop.org base directory spec. Flaunts the spec and never removes
it, even after last logout. This keeps things simple and predictable.
The user is responsible for ensuring that the @file{/run/user} directory
exists and is only writable by root.")
(license license:bsd-0)))
(define-public seatd-sans-logind
(let ((base seatd))
(package
(inherit base)
(name "seatd-sans-logind")
(arguments
(substitute-keyword-arguments (package-arguments base)
((#:configure-flags configure-flags)
#~(append #$configure-flags
(list "-Dlibseat-logind=disabled")))))
(propagated-inputs '()))))
+414
View File
@@ -0,0 +1,414 @@
;; SPDX-FileCopyrightText: 2023-2024 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages binaries)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix gexp)
#:use-module (guix deprecation)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system copy)
#:use-module (gnu build icecat-extension)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages bootstrap)
#:use-module (gnu packages compression)
#:use-module (gnu packages elf)
#:use-module (gnu packages gcc)
#:use-module (gnu packages glib)
#:use-module (gnu packages java)
#:use-module (gnu packages nss)
#:use-module (rosenthal packages networking)
#:use-module (rosenthal packages rust-apps)
#:use-module (rosenthal packages web))
(define license
(@@ (guix licenses) license))
(define-public atuin-bin
(deprecated-package "atuin-bin" atuin))
(define bitwarden
(package
(name "bitwarden")
(version "2025.3.1")
(source (origin
(method url-fetch/zipbomb)
(uri (string-append "https://github.com/bitwarden/clients"
"/releases/download/browser-v" version
"/dist-firefox-" version ".zip"))
(sha256
(base32
"03s8z32rc4mwzi61xpzn4f9z6kxwdnshqy61h2kr3cvq9974li3s"))))
(build-system copy-build-system)
(arguments
(list #:install-plan
#~'(("." #$(assq-ref (package-properties this-package) 'addon-id)))))
(home-page "https://bitwarden.com/")
(synopsis "Bitwarden client browser extension")
(description
"This package provides browser extension for Bitwarden client.")
(license license:gpl3)
(properties '((addon-id . "{446900e4-71c2-419f-a6a7-df9c091e268b}")))))
(define-public bitwarden/icecat
(make-icecat-extension bitwarden))
(define-public clash-bin
(package
(name "clash-bin")
(version "1.18.0")
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/Dreamacro/clash/releases/download/v"
version "/clash-linux-amd64-v3-v" version ".gz"))
(sha256
(base32
"0gchpc4pvy24dvhb5nk08g97rswjqr1ic6i405f1ba5snfv8i5z8"))))
(build-system copy-build-system)
(arguments
(list #:install-plan
#~'((#$(format #f "clash-linux-amd64-v3-v~a" version) "bin/clash"))
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'fix-permission
(lambda _
(chmod (string-append #$output "/bin/clash") #o555))))))
(supported-systems '("x86_64-linux"))
(home-page "https://github.com/Dreamacro/clash")
(synopsis "Rule-based tunnel in Go")
(description
"Clash is a cross-platform rule-based proxy utility that runs on the
network and application layer, supporting various proxy and anti-censorship
protocols out-of-the-box.")
(license license:gpl3)))
(define-public hugo-bin
(deprecated-package "hugo-bin" hugo))
(define-public mihomo-bin
(package
(name "mihomo-bin")
(version "1.19.5")
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/MetaCubeX/mihomo/releases/download/v"
version "/mihomo-linux-amd64-v" version ".gz"))
(sha256
(base32
"1x7i7v1gkfgc19fmsn9annv8nvwfl6w5pqr1m3982plzabnlr1ni"))))
(build-system copy-build-system)
(arguments
(list #:install-plan
#~'((#$(string-append
"mihomo-linux-amd64-v" (package-version this-package))
"bin/mihomo"))
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'fix-permission
(lambda _
(chmod (string-append #$output "/bin/mihomo") #o555))))))
(supported-systems '("x86_64-linux"))
(home-page "https://wiki.metacubex.one/")
(synopsis "Rule-based tunnel in Go")
(description
"This package provides @command{mihomo}, another @code{clash} kernel.")
(license license:gpl3)
(properties '((upstream-name . "mihomo")))))
(define-public clash-meta-bin
(deprecated-package "clash-meta-bin" mihomo-bin))
(define-public cloudflare-warp-bin
(package
(name "cloudflare-warp-bin")
(version "2025.2.600.0")
(source (origin
(method url-fetch)
(uri (string-append "https://pkg.cloudflareclient.com"
"/pool/bookworm/main/c/cloudflare-warp/"
"cloudflare-warp_" version "_amd64.deb"))
(sha256
(base32
"0rabxl6vfj3pljn77w96kb2k9w99hh5pvis1grr4im6lf5m86xsj"))))
(build-system copy-build-system)
(arguments
(list #:install-plan
#~'(("bin" "bin" #:include ("warp-cli" "warp-svc")))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'unpack-deb
(lambda* (#:key source #:allow-other-keys)
(invoke "ar" "-x" source)
(invoke "tar" "-xf" "data.tar.gz")))
(add-after 'install 'patch-elf
(lambda _
(let ((ld.so (string-append #$(this-package-input "glibc")
#$(glibc-dynamic-linker)))
(rpath (string-join
(list
(string-append
(ungexp
(this-package-input "gcc") "lib") "/lib")
(string-append
#$(this-package-input "dbus") "/lib")
(string-append
#$(this-package-input "glibc") "/lib")
(string-append
#$(this-package-input "nspr") "/lib")
(string-append
#$(this-package-input "nss") "/lib/nss"))
":")))
(define (patch-elf file)
(format #t "Patching ~a ..." file)
(unless (string-contains file ".so")
(invoke "patchelf" "--set-interpreter" ld.so file))
(invoke "patchelf" "--set-rpath" rpath file)
(display " done\n"))
(for-each (lambda (file)
(patch-elf file))
(find-files
(string-append #$output "/bin")))))))))
(supported-systems '("x86_64-linux"))
(native-inputs (list patchelf-0.16))
(inputs (list dbus `(,gcc "lib") glibc nspr nss))
(home-page "https://1.1.1.1/")
(synopsis "Cloudflare WARP client")
(description
"The Cloudflare WARP client allows individuals to have a faster, more
secure, and more private experience online. The WARP client sits between your
device and the Internet, and has several connection modes to better suit
different needs.")
(license
(license "Nonfree"
"https://www.cloudflare.com/application/terms/"
"This is a nonfree license. Check the URI for details."))
(properties
'((upstream-name . "cloudflare-warp")
(release-monitoring-url
. "https://pkg.cloudflareclient.com/dists/bookworm/main/binary-amd64/Packages")))))
(define-public komga-bin
(package
(name "komga-bin")
(version "1.21.2")
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/gotson/komga/releases/download/" version
"/komga-" version ".jar"))
(sha256
(base32
"0ya31gjikr71m8mc2pagm1pgc951q6q6yi7mvpa47qskspbkk30m"))))
(build-system copy-build-system)
(arguments
(list #:install-plan
#~'((#$(string-append "komga-" (package-version this-package) ".jar")
"lib/komga/komga.jar"))
#:phases
#~(modify-phases %standard-phases
(replace 'install
(lambda* (#:key inputs source #:allow-other-keys)
(let* ((lib (in-vicinity #$output "lib/komga"))
(bin (in-vicinity #$output "bin"))
(jar (in-vicinity lib "komga.jar"))
(exe "komga"))
(mkdir-p lib)
(copy-file source jar)
(call-with-output-file exe
(lambda (port)
(format port "~
#!~a
export LC_ALL=C.UTF-8
exec ~a -jar ~a $@~%"
(search-input-file inputs "bin/bash")
(search-input-file inputs "bin/java")
jar)))
(chmod exe #o555)
(install-file exe bin)))))))
(inputs (list bash-minimal openjdk))
(home-page "https://komga.org/")
(synopsis "Media server for comics/mangas/BDs/magazines/eBooks")
(description
"Komga is a media server for your comics, mangas, BDs, magazines and
eBooks.")
(license license:expat)
(properties '((upstream-name . "komga")))))
(define miniflux-injector
(package
(name "miniflux-injector")
(version "2.3.3")
(properties '((addon-id . "{528ec801-2e29-4cb9-ae71-5a90503138d1}")))
(source
(origin
(method url-fetch/zipbomb)
(uri (string-append
"https://github.com/Sevichecc/miniflux-injector/releases/download"
"/v" version "/miniflux_injector-" version ".zip"))
(sha256
(base32
"199z441ak6dwy7skgbwc9aa4gfd2r4i22hxfm27s5k3rv7barbvs"))
(modules '((guix build utils)))
(snippet
#~(substitute* "manifest.json"
(("homepage_url.*" line)
(string-append line "\
\"browser_specific_settings\": {
\"gecko\": {
\"id\": \"" #$(assq-ref properties 'addon-id) "\"
}
},
"))))))
(build-system copy-build-system)
(arguments
(list
#:install-plan
#~'(("." #$(assq-ref (package-properties this-package) 'addon-id)))))
(home-page "https://github.com/Sevichecc/miniflux-injector")
(synopsis "Injects Miniflux search results into search page")
(description
"This package provides a browser extension to inject Miniflux search
results into search page. Search terms are sent to your Miniflux instance and
results are added in a sidebar next to search engine results.")
(license license:expat)))
(define-public miniflux-injector/icecat
(make-icecat-extension miniflux-injector))
(define-public shadow-tls-bin
(package
(name "shadow-tls-bin")
(version "0.2.25")
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/ihciah/shadow-tls/releases/download/v"
version "/shadow-tls-x86_64-unknown-linux-musl"))
(sha256
(base32
"0chmqzfmyw5w8ybshkwigc3r25svq7fyw371d0dj2ibzsprgawx1"))))
(build-system copy-build-system)
(arguments
(list #:install-plan
#~'(("shadow-tls-x86_64-unknown-linux-musl" "bin/shadow-tls"))
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'fix-permission
(lambda _
(chmod (string-append #$output "/bin/shadow-tls") #o555))))))
(supported-systems '("x86_64-linux"))
(home-page "https://www.ihcblog.com/a-better-tls-obfs-proxy/")
(synopsis "Proxy to expose real tls handshake to the firewall")
(description
"Shadow TLS is a proxy to expose real tls handshake to the @acronym{MITM,
monster-in-the-middle}.")
(license license:expat)
(properties '((upstream-name . "shadow-tls")))))
(define sidebery
(package
(name "sidebery")
(version "5.3.3.7")
(source
(origin
(method url-fetch/zipbomb)
(uri (string-append
"https://github.com/mbnuqw/sidebery/releases/download/v"
(string-drop-right version 2) "/sidebery-" version ".xpi"))
(sha256
(base32
"0srply73aa3i353w8d6zlqn55wqb2ndmcmzzr4n3dsxr5hynpypx"))))
(build-system copy-build-system)
(arguments
(list
#:install-plan
#~'(("." #$(assq-ref (package-properties this-package) 'addon-id)))))
(home-page "https://github.com/mbnuqw/sidebery")
(synopsis "Manage tabs and bookmarks in sidebar")
(description
"This package provides a browser extension for managing tabs and bookmarks
in sidebar.")
(license license:expat)
(properties '((addon-id . "{3c078156-979c-498b-8990-85f7987dd929}")))))
(define-public sidebery/icecat
(make-icecat-extension sidebery))
(define-public sing-box-bin
(package
(name "sing-box-bin")
(version "1.11.8")
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/SagerNet/sing-box/releases/download/v"
version "/sing-box-" version "-linux-amd64.tar.gz"))
(sha256
(base32
"0fdv8wvkydm20fgpy30hm3b6v3vz09pim178faximpyv4846m46z"))))
(build-system copy-build-system)
(arguments (list #:install-plan #~'(("sing-box" "bin/"))))
(supported-systems '("x86_64-linux"))
(home-page "https://sing-box.sagernet.org/")
(synopsis "Universal proxy platform")
(description
"This package provides @command{sing-box}, a universal proxy platform.")
(license license:gpl3+)
(properties '((upstream-name . "sing-box")))))
(define-public tailscale-bin
(deprecated-package "tailscale-bin" tailscale))
(define-public wakapi-bin
(package
(name "wakapi-bin")
(version "2.13.3")
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/muety/wakapi/releases/download/"
version "/wakapi_linux_amd64.zip"))
(sha256
(base32
"1znlp9h1rvisas6qf5r76yg0mbiiqxwgrqcc10gvcjsjrib844av"))))
(build-system copy-build-system)
(arguments (list #:install-plan #~'(("wakapi" "bin/wakapi"))))
(supported-systems '("x86_64-linux"))
(native-inputs (list unzip))
(home-page "https://wakapi.dev/")
(synopsis "WakaTime-compatible backend")
(description
"This package provides @code{wakapi}, a WakaTime-compatible backend for
coding statistics.")
(license license:expat)
(properties '((upstream-name . "wakapi")))))
(define-public wakatime-cli-bin
(package
(name "wakatime-cli-bin")
(version "1.115.1")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/wakatime/wakatime-cli"
"/releases/download/v" version
"/wakatime-cli-linux-amd64.zip"))
(sha256
(base32
"1dd4r963kfka0iq6471sid4zrqkjbdm4lw8fyhx24rk0085lhcap"))))
(build-system copy-build-system)
(arguments
(list #:install-plan
#~'(("wakatime-cli-linux-amd64" "bin/wakatime-cli"))))
(supported-systems '("x86_64-linux"))
(native-inputs (list unzip))
(home-page "https://wakatime.com/plugins")
(synopsis "Command line interface to WakaTime")
(description
"This package provides @command{wakatime-cli}, the command line interface
to WakaTime, which is used by all WakaTime text editor plugins.")
(license license:bsd-3)
(properties '((upstream-name . "wakatime-cli")))))
@@ -0,0 +1,50 @@
;; SPDX-FileCopyrightText: 2023 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages bootloaders)
#:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages autotools)
#:use-module (gnu packages bootloaders)
#:use-module (gnu packages python))
;; Patches obtained from:
;; <https://leo3418.github.io/collections/gentoo-config-luks2-grub-systemd/packages.html>
(define grub-luks2-argon2-support-patch
(origin
(method url-fetch)
(uri (string-append "https://leo3418.github.io/"
"res/collections/gentoo-config-luks2-grub-systemd/"
"grub-2.12-luks2-argon2-v4.patch"))
(sha256
(base32
"02y15k6rd5vj2shfijyhq2nr2775vpa55ijfy6bb8irpnh8i2272"))))
(define-public grub-efi-luks2
(let ((base grub-efi))
(package
(inherit base)
(name "grub-efi-luks2")
(source
(let ((base (package-source base)))
(origin
(inherit base)
(patches
(append (origin-patches base)
(list grub-luks2-argon2-support-patch))))))
(arguments
(substitute-keyword-arguments (package-arguments base)
((#:configure-flags flags ''())
#~(append #$flags '("--disable-werror")))
((#:phases phases '%standard-phases)
#~(modify-phases #$phases
(add-after 'unpack 'delete-configure-script
(lambda _
(delete-file "configure")))))))
(native-inputs
(modify-inputs (package-native-inputs base)
(append autoconf automake python-minimal-wrapper))))))
+28
View File
@@ -0,0 +1,28 @@
;; SPDX-FileCopyrightText: 2022 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages busybox)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages busybox))
(define-public busybox/static
(let ((base busybox))
(package
(inherit base)
(name "busybox-static")
(arguments
(substitute-keyword-arguments (package-arguments base)
((#:phases phases)
#~(modify-phases #$phases
(add-after 'configure 'static-build
(lambda _
(substitute* ".config"
(("# CONFIG_STATIC is not set")
"CONFIG_STATIC=y"))))
;; FIXME: All mdev tests fail when building staticly.
(add-before 'check 'disable-failing-tests
(lambda _
(delete-file "testsuite/mdev.tests"))))))))))
+61
View File
@@ -0,0 +1,61 @@
;; SPDX-FileCopyrightText: 2022-2024 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages dns)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system copy)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages))
(define-public dnsmasq-china-list
;; No version.
(let ((commit "6601f38990c06909d69364685a8ef4f3544e1e69")
(revision "18"))
(package
(name "dnsmasq-china-list")
(version (git-version "0" revision commit))
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/felixonmars/dnsmasq-china-list")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"1sqm1mmbnc9gxj77yplslx3nlnxx34dfxv9y8gdlwkgzjhg13r5x"))))
(build-system copy-build-system)
(arguments
(list #:install-plan
#~'(("." "share/dnsmasq-china-list/" #:include-regexp ("\\.conf")))
#:phases
#~(modify-phases %standard-phases
(add-before 'install 'build
(lambda _
(for-each (lambda (target)
(invoke "make" target
"SERVER=domestic"
"SMARTDNS_SPEEDTEST_MODE=tcp:80"))
'("adguardhome"
"bind"
"coredns"
"dnscrypt-proxy"
"dnsforwarder6"
"dnsmasq"
"smartdns" "smartdns-domain-rules"
"unbound")))))))
(home-page "https://github.com/felixonmars/dnsmasq-china-list")
(synopsis "Chinese-specific DNS server configurations")
(description
"Chinese-specific configuration to improve your favorite DNS server.
Best partner for chnroutes.
@itemize
@item Improve resolve speed for Chinese domains.
@item Get the best CDN node near you whenever possible, but don't compromise
foreign CDN results so you also get best CDN node for your VPN at the same
time.
@item Block ISP ads on NXDOMAIN result (like 114so).
@end itemize")
(license license:wtfpl2))))
+64
View File
@@ -0,0 +1,64 @@
;; SPDX-FileCopyrightText: 2022-2024 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages emacs-xyz)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system emacs)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages))
(define-public emacs-pcmpl-tailscale
(let ((commit "acd6bce54af506b0450cf6aa1068f63d4e25c8ce")
(revision "0"))
(package
(name "emacs-pcmpl-tailscale")
(version (git-version "0.0.1" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://git.thanosapollo.org/pcmpl-tailscale")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "0lk808ahy8ckg2fr2pqk3p5if81nqrwsajrgqafv9hgn8w4l1x0p"))))
(build-system emacs-build-system)
(home-page "https://git.thanosapollo.org/pcmpl-tailscale")
(synopsis "Enhanced shell completions for tailscale")
(description
"This package provides enhanced completions for the tailscale command
and it's subcommands.")
(license license:gpl3+))))
;; https://issues.guix.gnu.org/59552
(define-public emacs-wakatime-mode
;; No release since May 5, 2015.
(let ((commit "1c5b2254dd72f2ff504d6a6189a8c10be03a98d1")
(revision "60"))
(package
(name "emacs-wakatime-mode")
;; 1.0.2 on commit 32a0154cd4bbd525d354997e6b12c6a9726d0b43, not tagged
(version (git-version "1.0.2" revision commit))
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/wakatime/wakatime-mode")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"00qv6b756qiaqrmfg1w03psnsdj0iaz3sp50ib4kmdm2g9vgxl1s"))))
(build-system emacs-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
;; XXX: WakaTime hasn't packaged in Guix yet.
(delete 'patch-el-files))))
(home-page "https://wakatime.com/emacs")
(synopsis "Automatic time tracking extension for Emacs using WakaTime")
(description
"WakaTime mode is an Emacs minor mode for automatic time tracking and
metrics generated from your programming activity.")
(license license:gpl3+))))
+162
View File
@@ -0,0 +1,162 @@
;; SPDX-FileCopyrightText: 2022-2024 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages networking)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system go)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (rosenthal utils download)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-build))
(define-public cloudflared
(package
(name "cloudflared")
(version "2025.4.2")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/cloudflare/cloudflared")
(commit version)))
(file-name (git-file-name name version))
;; TODO: Unbundle vendored dependencies.
;; (modules '((guix build utils)))
;; (snippet '(delete-file-recursively "vendor"))
(sha256
(base32
"0mblq1zvl7722k3515yc99ym18li39anlcmj8s10m7kkp9yfc596"))))
(build-system go-build-system)
(arguments
(list #:go go-1.23
#:install-source? #f
#:import-path "github.com/cloudflare/cloudflared/cmd/cloudflared"
#:unpack-path "github.com/cloudflare/cloudflared"
#:build-flags
#~(list (string-append
"-ldflags="
" -X main.Version=" #$(package-version this-package)
" -X github.com/cloudflare/cloudflared/cmd/cloudflared/updater.BuiltForPackageManager=Guix"))
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'disable-cgo
(lambda _
(setenv "CGO_ENABLED" "0")))
(add-after 'install 'install-documentation
(lambda _
(let ((src "src/github.com/cloudflare/cloudflared/cloudflared_man_template")
(dst (string-append #$output "/share/man/man1/cloudflared.1")))
(substitute* src
(("\\$\\{VERSION\\}") #$(package-version this-package)))
(mkdir-p (dirname dst))
(copy-file src dst)))))))
(home-page "https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/")
(synopsis "Cloudflare Tunnel client")
(description
"This package provides the command-line client for Cloudflare Tunnel, a
tunneling daemon that proxies traffic from the Cloudflare network to your
origins. This daemon sits between Cloudflare network and your origin (e.g. a
webserver). Cloudflare attracts client requests and sends them to you via
this daemon, without requiring you to poke holes on your firewall --- your
origin can remain as closed as possible.")
(license license:asl2.0)))
(define-public socks2http
(package
(name "socks2http")
(version "0.0.0-20160712034938-bafa2cde8eb4")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/zenhack/socks2http")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32
"0c388rir9d0cy5vxqxj7m72nra0w5cya4mmgqdcvqmnk2vawdyb9"))))
(build-system go-build-system)
(arguments
(list #:install-source? #f
#:import-path "github.com/zenhack/socks2http"))
(inputs (list go-golang-org-x-net))
(home-page "https://github.com/zenhack/socks2http")
(synopsis "SOCKS5 to HTTP proxy")
(description
"This package provides a simple tool to plumb HTTP proxy requests through
a SOCKS5 proxy.")
(license license:expat)))
(define-public tailscale
(package
(name "tailscale")
(version "1.80.3")
(source
(origin
(method go-vendored-fetch)
(uri (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tailscale/tailscale")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"07s8kwksvd0f9r65zkrhp3sn4jrv0c8g5w0wbiv9qq950l8gdv2h"))))
(file-name (git-file-name name version))
(sha256
(base32
"0g2pzazrfl41s1gra2g3ni34ddgw32mb2rjlv8x17g3yc7axdbqa"))
(modules '((guix build utils)))
(snippet '(delete-file-recursively "tool"))))
(build-system go-build-system)
(arguments
(list
#:go go-1.23
#:install-source? #f
#:import-path "."
#:build-flags
#~(list "-tags" "ts_include_cli"
(string-append
"-ldflags="
" -X tailscale.com/version.longStamp=v"
#$(package-version this-package)
" -X tailscale.com/version.shortStamp=v"
#$(package-version this-package)))
#:test-flags ''("-skip=^TestPackageDocs$")
#:test-subdirs ''(".")
#:modules
'(((guix build gnu-build-system) #:prefix gnu:)
(guix build go-build-system)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'unpack
(lambda args
(apply (assoc-ref gnu:%standard-phases 'unpack) args)
(unsetenv "GO111MODULE")))
(replace 'install-license-files
(assoc-ref gnu:%standard-phases 'install-license-files))
;; TODO: Fix command references.
(replace 'build
(lambda* (#:key build-flags parallel-build? #:allow-other-keys)
(let* ((njobs (if parallel-build? (parallel-job-count) 1)))
(setenv "GOMAXPROCS" (number->string njobs))
(for-each
(lambda (pkg)
(apply invoke "go" "build" "-ldflags=-s -w" "-trimpath"
"-o" (string-append #$output "/bin/" pkg)
`(,@build-flags
,(string-append "tailscale.com/cmd/" pkg))))
'("derper"
"derpprobe"
"tailscale"
"tailscaled"
"tsidp"))))))))
(home-page "https://tailscale.com/")
(synopsis "Private WireGuard® networks made easy")
(description
"This package provides @command{tailscale}, which brings an easy and secure
way to use WireGuard and 2FA.")
(license license:bsd-3)))
+77
View File
@@ -0,0 +1,77 @@
;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages rust-apps)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system cargo)
#:use-module (rosenthal packages rust-crates))
(define-public atuin
(package
(name "atuin")
(version "18.4.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/atuinsh/atuin")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1zi7ar999ycvig9c9crylab540xdgr0h6v99q9j8ypk9i1fviyiz"))))
(build-system cargo-build-system)
(arguments
(list
#:install-source? #f
#:features
''("client" "sync" "server" "clipboard" "daemon")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda _
(substitute* '("crates/atuin/tests/sync.rs"
"crates/atuin/tests/users.rs"
"crates/atuin-dotfiles/src/store.rs"
"crates/atuin-dotfiles/src/store/var.rs")
(((string-append
".*async fn (" (string-join
'(;; Require running database.
"build_aliases"
"build_vars"
"sync"
"registration"
"change_password"
"multi_user_test")
"|") ")")
all)
(string-append "#[ignore]\n" all)))))
(add-after 'unpack 'patch-references
(lambda _
(substitute* (find-files "crates/atuin/src/shell")
(("atuin (uuid|history|search)" all)
(string-append #$output "/bin/" all)))))
(replace 'install
(lambda* (#:key outputs features #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(registry (string-append out "/share/cargo/registry"))
(sources (string-append out "/share/cargo/src")))
(mkdir-p out)
;; Make cargo reuse all the artifacts we just built instead
;; of defaulting to making a new temp directory
(setenv "CARGO_TARGET_DIR" "./target")
;; Only install crates which include binary targets,
;; otherwise cargo will raise an error.
(invoke "cargo" "install" "--no-track" "--path" "crates/atuin"
"--root" out "--features" (string-join features))))))))
(inputs (rosenthal-cargo-inputs 'atuin))
(home-page "https://atuin.sh/")
(synopsis "Sync, search and backup shell history")
(description
"Atuin replaces existing shell history with a SQLite database, and records
additional context for commands. Additionally, it provides optional and fully
encrypted synchronisation of history between machines, via an Atuin server.")
(license license:expat)))
File diff suppressed because it is too large. Load diff
+26
View File
@@ -0,0 +1,26 @@
;; SPDX-FileCopyrightText: 2022 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages ssh)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages compression)
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages ssh))
(define-public dropbear/static
(let ((base dropbear))
(package
(inherit dropbear)
(name "dropbear-static")
(arguments
(substitute-keyword-arguments (package-arguments base)
((#:configure-flags flags)
#~(append #$flags (list "--enable-static")))))
(inputs
(modify-inputs (package-inputs base)
(append `(,zlib "static"))
(replace "libtomcrypt" `(,libtomcrypt "static"))
(replace "libtommath" `(,libtommath "static")))))))
@@ -0,0 +1,38 @@
;; SPDX-FileCopyrightText: 2023 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages tree-sitter)
#:use-module (guix gexp)
#:use-module (guix packages))
(define tree-sitter-grammar
(@@ (gnu packages tree-sitter) tree-sitter-grammar))
(define-public tree-sitter-yaml
(let ((base
(tree-sitter-grammar
"yaml" "YAML"
"1bimf5fq85wn8dwlk665w15n2bj37fma5rsfxrph3i9yb0lvzi3q"
"0.5.0"
#:repository-url "https://github.com/ikatyang/tree-sitter-yaml"
#:get-cleanup-snippet
(lambda (grammar-directories)
#~(begin
(use-modules (guix build utils))
(delete-file-recursively "docs")
(delete-file "binding.gyp")
(delete-file-recursively "bindings")
(for-each
(lambda (lang)
(with-directory-excursion lang
(delete-file "src/grammar.json")
(delete-file "src/node-types.json")
(delete-file "src/parser.c")
(delete-file-recursively "src/tree_sitter")))
'#$grammar-directories))))))
(package
(inherit base)
(arguments
(append '(#:tests? #f) ;FIXME
(package-arguments base))))))
+23
View File
@@ -0,0 +1,23 @@
;; SPDX-FileCopyrightText: 2022 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages video)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages video))
(define-public libva-nox
(let ((base libva))
(package
(inherit base)
(name "libva-nox")
(arguments
(substitute-keyword-arguments (package-arguments base)
((#:configure-flags configure-flags)
#~(append #$configure-flags (list "--disable-glx")))
((#:phases _) #~%standard-phases)))
(inputs
(modify-inputs (package-inputs base)
(delete "libx11" "libxext" "libxfixes"))))))
+175
View File
@@ -0,0 +1,175 @@
;; SPDX-FileCopyrightText: 2022, 2025 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages web)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (rosenthal utils download)
#:use-module (guix build-system go)
#:use-module (gnu packages golang)
#:use-module (gnu packages image)
#:use-module (gnu packages web))
(define-public buku-run-dev
(let ((revision "23")
(commit "54fcdd77fc1e8e657b785b7d4ca8dc915e5f336b"))
(package
(inherit buku-run)
(name "buku-run-dev")
(version (git-version "0.1.1" revision commit))
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/carnager/buku_run")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"079ygn39px71bypa54jn4z55iq24lxxcy7jv3ijy08iinqbfvldc")))))))
(define-public hugo
(package
(name "hugo")
(version "0.145.0")
(source
(origin
(method go-vendored-fetch)
(uri (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gohugoio/hugo")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"19kfij8c1ljfn8xr3mfm5c89fhp62bl0c7rx0i8726jn6dbpl9g5"))))
(sha256
(base32
"10fmva8p4hcbs2kyjggbanrmix1mf1fym549c5zdv80khpppzfnb"))))
(build-system go-build-system)
(arguments
(list
#:go go-1.23
#:install-source? #f
#:import-path "."
#:build-flags
''("-tags" "extended withdeploy"
"-ldflags=-X github.com/gohugoio/hugo/common/hugo.vendorInfo=Nonguix")
#:test-flags ''("-skip=^TestCommands/mod|^TestCommands/server")
#:test-subdirs ''(".")
#:modules
'(((guix build gnu-build-system) #:prefix gnu:)
(guix build go-build-system)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'unpack
(lambda args
(apply (assoc-ref gnu:%standard-phases 'unpack) args)
(unsetenv "GO111MODULE")))
(replace 'install-license-files
(assoc-ref gnu:%standard-phases 'install-license-files))
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
(setenv "C_INCLUDE_PATH"
(string-append
(getenv "C_INCLUDE_PATH") ":"
(dirname
(dirname
(dirname
(search-input-file inputs "src/dec/alphai_dec.h"))))))
(with-directory-excursion "vendor/github.com/bep/gowebp"
(substitute* (find-files "internal/libwebp")
(("../../libwebp_src/(.*)\"" _ file)
(string-append (search-input-file inputs file) "\""))))
(with-directory-excursion "vendor/github.com/bep/golibsass"
(substitute* (find-files "internal/libsass")
(("../../libsass_src/(.*)\"" _ file)
(string-append (search-input-file inputs file) "\"")))))))))
(inputs
(list (package-source libsass)
(package-source libwebp)))
(home-page "https://gohugo.io/")
(synopsis "Static site generator")
(description
"Hugo is a static site generator written in Go, optimized for speed and
designed for flexibility.")
(license license:asl2.0)))
;; TODO: Package Forgejo without vendored dependencies.
(define-public forgejo
(package
(name "forgejo")
(version "10.0.3")
(source (origin
(method url-fetch)
(uri (string-append
"https://codeberg.org/forgejo/forgejo/releases/download/v"
version "/forgejo-src-" version ".tar.gz"))
(sha256
(base32
"0cqp4x3xrvr7q1pkijqmf6jnx3wahi20xjfrv7ap81ykif83269x"))))
(build-system go-build-system)
(arguments
(list #:go go-1.23
#:install-source? #f
#:tests? #f ;TODO
#:import-path "code.gitea.io/gitea"
#: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 code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/forgejo"
" -X code.gitea.io/gitea/modules/setting.CustomPath=" #$output "/etc/forgejo"
" -X code.gitea.io/gitea/modules/setting.CustomConf=/etc/forgejo/app.ini"))
#:modules
'(((guix build gnu-build-system) #:prefix gnu:)
(guix build go-build-system)
(guix build union)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'unpack
(assoc-ref gnu:%standard-phases 'unpack))
(add-after 'unpack 'support-module
(lambda _
(unsetenv "GO111MODULE")
(substitute* "go.mod"
(("^toolchain.*") ""))))
(replace 'build
(lambda* (#:key build-flags (parallel-build? #t)
#:allow-other-keys)
(let* ((njobs (if parallel-build? (parallel-job-count) 1)))
(setenv "GOMAXPROCS" (number->string njobs)))
(apply invoke "go" "install"
"-v" "-x"
"-ldflags=-s -w"
"-trimpath"
build-flags)))
(replace 'install
(lambda _
(mkdir-p (in-vicinity #$output "/etc/forgejo"))
(copy-file
"custom/conf/app.example.ini"
(in-vicinity #$output "etc/forgejo/app.ini"))
(for-each
(lambda (dir)
(copy-recursively
dir (string-append #$output "/etc/forgejo/" dir)))
'("options" "public" "templates"))
(with-directory-excursion (in-vicinity #$output "bin")
(rename-file "gitea" "forgejo"))))
(replace 'install-license-files
(assoc-ref gnu:%standard-phases 'install-license-files)))))
(synopsis "Lightweight software forge")
(description
"Forgejo is a self-hosted lightweight software forge. Easy to install and
low maintenance, it just does the job.")
(home-page "https://forgejo.org/")
(license license:gpl3+)))
+191
View File
@@ -0,0 +1,191 @@
;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages wm)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system cargo)
#:use-module (gnu packages admin)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gl)
#:use-module (gnu packages glib)
#:use-module (gnu packages gtk)
#:use-module (gnu packages linux)
#:use-module (gnu packages llvm)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages wm)
#:use-module (gnu packages xdisorg)
#:use-module (rosenthal packages rust-crates))
(define-public rust-pipewire
(let ((commit "fd3d8f7861a29c2eeaa4c393402e013578bb36d9")
(revision "0"))
(package
(name "rust-pipewire")
(version (git-version "0.8.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitlab.freedesktop.org/pipewire/pipewire-rs.git")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1hzyhz7xg0mz8a5y9j6yil513p1m610q3j9pzf6q55vdh5mcn79v"))))
(build-system cargo-build-system)
(arguments
(list #:skip-build? #t
#:phases
#~(modify-phases %standard-phases
;; Avoid circular dependency.
(add-after 'unpack 'remove-dev-dependencies
(lambda _
(substitute* "libspa/Cargo.toml"
(("^pipewire.*") ""))))
(replace 'package
(lambda* (#:key cargo-package-flags vendor-dir #:allow-other-keys)
(begin
;;error: invalid inclusion of reserved file name Cargo.toml.orig in package source
(when (file-exists? "Cargo.toml.orig")
(delete-file "Cargo.toml.orig"))
(for-each
(lambda (pkg)
(apply invoke "cargo" "package" "--offline" "--package" pkg
cargo-package-flags)
(for-each
(lambda (crate)
(invoke "tar" "xzf" crate "-C" vendor-dir))
(find-files "target/package" "\\.crate$"))
((assoc-ref %standard-phases 'patch-cargo-checksums)))
'("libspa-sys" "libspa" "pipewire-sys" "pipewire"))))))))
(inputs (rosenthal-cargo-inputs 'rust-pipewire))
(home-page "https://pipewire.org/")
(synopsis "Rust bindings for PipeWire")
(description "This package provides Rust bindings for PipeWire.")
(license license:expat)
(properties '((hidden? . #t))))))
(define-public rust-smithay
(let ((commit "0cd3345c59f7cb139521f267956a1a4e33248393")
(revision "0"))
(package
(name "rust-smithay")
(version (git-version "0.4.0" revision commit))
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Smithay/smithay")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32
"191h87bpzg0l1ihfb4hmx00b86pfb5mwwc6s8i49al0vigc14l37"))))
(build-system cargo-build-system)
(arguments
(list #:skip-build? #t
#:phases
#~(modify-phases %standard-phases
(replace 'package
(lambda* (#:key cargo-package-flags vendor-dir #:allow-other-keys)
(begin
;;error: invalid inclusion of reserved file name Cargo.toml.orig in package source
(when (file-exists? "Cargo.toml.orig")
(delete-file "Cargo.toml.orig"))
(for-each
(lambda (pkg)
(apply invoke "cargo" "package" "--offline" "--package" pkg
cargo-package-flags)
(for-each
(lambda (crate)
(invoke "tar" "xzf" crate "-C" vendor-dir))
(find-files "target/package" "\\.crate$"))
((assoc-ref %standard-phases 'patch-cargo-checksums)))
'("smithay" "smithay-drm-extras"))))))))
(inputs (rosenthal-cargo-inputs 'rust-smithay))
(home-page "https://github.com/Smithay/smithay")
(synopsis "Smithy for Rust Wayland compositors")
(description
"Smithay aims to provide building blocks to create wayland compositors in
Rust. While not being a full-blown compositor, it'll provide objects and
interfaces implementing common functionalities that pretty much any compositor
will need, in a generic fashion.
It supports the @code{wayland}, @code{wayland-protocols}, and some external
extensions, such as @code{wlr-protocols} and @code{plasma-wayland-protocols}.")
(license license:expat)
(properties '((hidden? . #t))))))
(define-public niri
(package
(name "niri")
(version "25.02")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/YaLTeR/niri")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0vzskaalcz6pcml687n54adjddzgf5r07gggc4fhfsa08h1wfd4r"))))
(build-system cargo-build-system)
(arguments
(list #:install-source? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'use-guix-vendored-dependencies
(lambda _
(substitute* "Cargo.toml"
(("# version =.*")
"version = \"*\"")
(("git.*optional")
"version = \"*\", optional")
(("^git = .*")
""))))
(add-after 'unpack 'set-environment
(lambda _
(setenv "RUSTFLAGS"
(string-join
'("-C" "link-arg=-lEGL"
"-C" "link-arg=-lwayland-client")
" "))
(setenv "NIRI_BUILD_VERSION_STRING"
#$(package-version this-package))
;; For tests.
(setenv "XDG_RUNTIME_DIR" "/tmp")))
(add-after 'install 'install-extras
(lambda _
(substitute* "resources/niri.desktop"
(("niri-session")
(string-append #$output "/bin/niri --session")))
(install-file
"resources/niri.desktop"
(in-vicinity #$output "share/wayland-sessions"))
(install-file
"resources/niri-portals.conf"
(in-vicinity #$output "share/xdg-desktop-portal")))))))
(native-inputs
(list pkg-config))
(inputs
(cons* clang
libdisplay-info
libinput-minimal
libseat
libxkbcommon
mesa
pango
pipewire
wayland
(rosenthal-cargo-inputs 'niri)))
(home-page "https://github.com/YaLTeR/niri")
(synopsis "Scrollable-tiling Wayland compositor")
(description
"Niri is a scrollable-tiling Wayland compositor which arranges windows in a
scrollable format. It is considered stable for daily use and performs most
functions expected of a Wayland compositor.")
(license license:gpl3)))
+54
View File
@@ -0,0 +1,54 @@
;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal packages xorg)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system cargo)
#:use-module (gnu packages llvm)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages xorg)
#:use-module (rosenthal packages rust-crates))
(define-public xwayland-satellite
(package
(name "xwayland-satellite")
(version "0.5.1")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Supreeeme/xwayland-satellite")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1r99qfbmc67202pcs4kiw94hiql0aqcsx877bgnlyxy6gzilq47y"))))
(build-system cargo-build-system)
(arguments
(list #:install-source? #f
#:tests? #f ;Requires running display server.
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/lib.rs"
(("\"Xwayland\"")
(format #f "\"~a\""
(search-input-file inputs "bin/Xwayland")))))))))
(native-inputs (list pkg-config))
(inputs
(cons* clang
xcb-util-cursor
xorg-server-xwayland
(rosenthal-cargo-inputs 'xwayland-satellite)))
(home-page "https://github.com/Supreeeme/xwayland-satellite")
(synopsis "Xwayland outside your Wayland")
(description
"@command{xwayland-satellite} grants rootless Xwayland integration to any
Wayland compositor implementing @code{xdg_wm_base} interface. This is
particularly useful for compositors that (understandably) do not want to go
through implementing support for rootless Xwayland themselves.")
(license license:mpl2.0)))
+148
View File
@@ -0,0 +1,148 @@
;; SPDX-FileCopyrightText: 2022, 2023 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal services bittorrent)
#:use-module (ice-9 format)
#:use-module (guix gexp)
#:use-module (guix records)
#:use-module (gnu packages admin)
#:use-module (gnu packages bittorrent)
#:use-module (gnu services)
#:use-module (gnu services configuration)
#:use-module (gnu services shepherd)
#:use-module (gnu home services)
#:use-module (gnu home services shepherd)
#:use-module (gnu system shadow)
#:export (qbittorrent-configuration
qbittorrent-service-type
home-qbittorrent-service-type))
;;
;; qBittorrent
;;
(define-configuration qbittorrent-configuration
(qbittorrent
(file-like qbittorrent-nox)
"The qBittorrent package to use, we need @command{qbittorrent-nox}.")
(webui-port
(integer 8080)
"Change the Web UI port.")
(profile-directory
(string "/var/lib/qbittorrent")
"Directory to store configuration files in.")
(extra-options
(list-of-strings '())
"List of extra options.")
(no-serialization))
(define %qbittorrent-accounts
(list (user-group (name "qbittorrent") (system? #t))
(user-account
(name "qbittorrent")
(group "qbittorrent")
(system? #t)
(comment "qBittorrent user")
(home-directory "/var/empty")
(shell (file-append shadow "/sbin/nologin")))))
;; Set default password to adminadmin
(define %qbittorrent-default-config-file
(plain-file
"qBittorrent.conf"
(format #f "~
[LegalNotice]
Accepted=true
[Preferences]
WebUI\\Password_PBKDF2=\"@ByteArray(ARQ77eY1NUZaQsuDHbIMCA==:0WMRkYTUWVT9wVvdDtHAjU9b3b7uB8NR1Gur2hmQCvCDpm39Q+PsJRJPaCU51dEiz+dTzh8qbPsL8WkFljQYFQ==)\"~%")))
(define qbittorrent-activation
(match-record-lambda <qbittorrent-configuration>
(profile-directory)
#~(begin
(use-modules (srfi srfi-26)
(guix build utils))
(let ((user (getpwnam "qbittorrent"))
(config-file
(string-append
#$profile-directory "/qBittorrent/config/qBittorrent.conf")))
(unless (file-exists? config-file)
(mkdir-p (dirname config-file))
(copy-file #$%qbittorrent-default-config-file config-file)
(map (cut chown <> (passwd:uid user) (passwd:gid user))
(cons #$profile-directory
(find-files #$profile-directory #:directories? #t))))))))
(define qbittorrent-shepherd-service
(match-record-lambda <qbittorrent-configuration>
(qbittorrent webui-port profile-directory extra-options)
(list (shepherd-service
(documentation "Run qbittorrent.")
(provision '(qbittorrent))
(requirement '(networking))
(start #~(make-forkexec-constructor
(list #$(file-append qbittorrent "/bin/qbittorrent-nox")
#$(string-append "--webui-port="
(number->string webui-port))
#$(string-append "--profile=" profile-directory)
#$@extra-options)
#:user "qbittorrent"
#:group "qbittorrent"
#:resource-limits '((nofile 65536 65536))))
(stop #~(make-kill-destructor #:grace-period 1800))
(actions
(list (shepherd-configuration-action
(string-append profile-directory
"/qBittorrent/config/qBittorrent.conf"))))))))
(define qbittorrent-service-type
(service-type
(name 'qbittorrent)
(extensions
(list (service-extension shepherd-root-service-type
qbittorrent-shepherd-service)
(service-extension activation-service-type
qbittorrent-activation)
(service-extension account-service-type
(const %qbittorrent-accounts))))
(default-value (qbittorrent-configuration))
(description "Run qBittorrent daemon.")))
(define home-qbittorrent-activation
#~(let ((config-file
(string-append
(or (getenv "XDG_CONFIG_HOME")
(string-append user-homedir "/.config"))
"/qBittorrent/qBittorrent.conf")))
(unless (file-exists? config-file)
(mkdir-p (dirname config-file))
(copy-file #$%qbittorrent-default-config-file config-file))))
(define home-qbittorrent-shepherd-service
(match-record-lambda <qbittorrent-configuration>
(qbittorrent webui-port extra-options)
(list (shepherd-service
(documentation "Run qbittorrent.")
(provision '(qbittorrent))
(requirement '())
(start
#~(make-forkexec-constructor
(list
#$(file-append qbittorrent "/bin/qbittorrent-nox")
#$(string-append "--webui-port=" (number->string webui-port))
#$@extra-options)))
(stop #~(make-kill-destructor #:grace-period 1800))
(auto-start? #f)))))
(define home-qbittorrent-service-type
(service-type
(name 'qbittorrent)
(extensions
(list (service-extension home-activation-service-type
(const home-qbittorrent-activation))
(service-extension home-shepherd-service-type
home-qbittorrent-shepherd-service)))
(default-value (qbittorrent-configuration))
(description "Run qBittorrent daemon.")))
+558
View File
@@ -0,0 +1,558 @@
;; SPDX-FileCopyrightText: 2022, 2023 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal services child-error)
#:use-module (guix records)
#:use-module (guix gexp)
#:use-module (gnu home services)
#:use-module (gnu home services shepherd)
#:use-module (gnu packages admin)
#:use-module (gnu packages web)
#:use-module (gnu services)
#:use-module (gnu services admin)
#:use-module (gnu services configuration)
#:use-module (gnu services databases)
#:use-module (gnu services shepherd)
#:use-module (gnu system shadow)
#:use-module (rosenthal packages binaries)
#:use-module (rosenthal packages networking)
#:use-module (rosenthal utils home-services-utils)
#:export (clash-configuration
clash-service-type
cloudflare-tunnel-configuration
cloudflare-tunnel-service-type
cloudflare-warp-configuration
cloudflare-warp-service-type
miniflux-configuration
miniflux-service-type
home-wakapi-configuration
home-wakapi-service-type
shadow-tls-configuration
shadow-tls-client-configuration
shadow-tls-server-configuration
shadow-tls-service-type
home-shadow-tls-service-type
home-socks2http-configuration
home-socks2http-service-type))
;;
;; Clash
;;
(define-configuration clash-configuration
(clash
(file-like mihomo-bin)
"The clash package.")
(log-file
(string "/var/log/clash.log")
"Where the logs go.")
(data-directory
(string "/var/lib/clash")
"Where to store data.")
(config
(file-like (plain-file "empty" ""))
"Clash configuration file.")
(shepherd-provision
(list '(clash))
"A list of Shepherd service names (symbols) provided by this service.")
(no-serialization))
(define %clash-accounts
(list (user-group (name "clash") (system? #t))))
(define clash-activation
(match-record-lambda <clash-configuration>
(data-directory config)
#~(begin
(use-modules (guix build utils))
(let ((config-dest (string-append #$data-directory "/config.yaml")))
(mkdir-p #$data-directory)
(if (file-exists? config-dest)
(delete-file config-dest))
(symlink #$config config-dest)))))
(define clash-shepherd-service
(match-record-lambda <clash-configuration>
(clash log-file data-directory shepherd-provision)
(list (shepherd-service
(documentation "Run clash.")
(provision shepherd-provision)
(requirement '(loopback networking))
(start #~(make-forkexec-constructor
(list (let ((mihomo-cmd
#$(file-append clash "/bin/mihomo"))
(clash-cmd
#$(file-append clash "/bin/clash")))
(if (file-exists? mihomo-cmd)
mihomo-cmd
clash-cmd))
"-d" #$data-directory)
#:group "clash"
#:log-file #$log-file))
(stop #~(make-kill-destructor))
(actions
(list (shepherd-configuration-action
(string-append data-directory "/config.yaml"))))))))
(define clash-service-type
(service-type
(name 'clash)
(extensions
(list (service-extension shepherd-root-service-type
clash-shepherd-service)
(service-extension activation-service-type
clash-activation)
(service-extension account-service-type
(const %clash-accounts))
(service-extension log-rotation-service-type
(compose list clash-configuration-log-file))))
(default-value (clash-configuration))
(description "Run Clash.")))
;;
;; Cloudflare Tunnel
;;
(define-maybe string)
(define-configuration cloudflare-tunnel-configuration
(cloudflared
(file-like cloudflared)
"The cloudflared executable.")
;; Tunnel options
(log-level
(string "info")
"Application logging level (@code{debug}, @code{info}, @code{warn},
@code{error}, @code{fatal}). At debug level cloudflared will log request URL,
method, protocol, content length, as well as, all request and response
headers. This can expose sensitive information in your logs.")
(log-file
(string "/var/log/cloudflared.log")
"File path to store logs.")
(extra-tunnel-options
(list-of-strings '())
"List of extra tunnel options.")
;; Subcommand options
(token
maybe-string
"The Tunnel token.")
(token-file
maybe-string
"Secert file for the Tunnel token.")
(extra-options
(list-of-strings '())
"List of extra options.")
(no-serialization))
(define cloudflare-tunnel-shepherd-service
(match-record-lambda <cloudflare-tunnel-configuration>
(cloudflared log-level log-file extra-tunnel-options
token token-file extra-options)
(list (shepherd-service
(documentation "Run cloudflared.")
(provision '(cloudflare-tunnel))
(requirement '(loopback networking))
(start #~(make-forkexec-constructor
(list #$(file-append cloudflared "/bin/cloudflared")
"tunnel"
"--no-autoupdate"
"--loglevel" #$log-level
#$@extra-tunnel-options
"run"
#$@extra-options)
#:user "nobody"
#:group "nogroup"
#:log-file #$log-file
#:environment-variables
(list #$@(if (maybe-value-set? token)
(list (format #f "TUNNEL_TOKEN=~a"
token))
'())
#$@(if (maybe-value-set? token-file)
(list (format #f "TUNNEL_TOKEN_FILE=~a"
token-file))
'()))))
(stop #~(make-kill-destructor))))))
(define cloudflare-tunnel-service-type
(service-type
(name 'cloudflare-tunnel)
(extensions
(list (service-extension shepherd-root-service-type
cloudflare-tunnel-shepherd-service)
(service-extension log-rotation-service-type
(compose list cloudflare-tunnel-configuration-log-file))))
(default-value (cloudflare-tunnel-configuration))
(description "Run cloudflared, the Cloudflare Tunnel daemon.")))
;;
;; Cloudflare Warp
;;
(define-configuration cloudflare-warp-configuration
(cloudflare-warp
(file-like cloudflare-warp-bin)
"The Cloudflare Warp package.")
(no-serialization))
(define cloudflare-warp-shepherd-service
(match-record-lambda <cloudflare-warp-configuration>
(cloudflare-warp)
(list (shepherd-service
(documentation "Run warp-svc.")
(provision '(cloudflare-warp))
(start #~(make-forkexec-constructor
(list #$(file-append cloudflare-warp "/bin/warp-svc"))
;; Logs are written to
;; /var/lib/cloudflare-warp/cfwarp_service_log.txt.
#:log-file "/dev/null"))
(stop #~(make-kill-destructor))))))
(define cloudflare-warp-service-type
(service-type
(name 'cloudflare-warp)
(extensions
(list (service-extension shepherd-root-service-type
cloudflare-warp-shepherd-service)
(service-extension
profile-service-type
(compose list cloudflare-warp-configuration-cloudflare-warp))))
(default-value (cloudflare-warp-configuration))
(description "Run warp-svc, the Cloudflare Warp daemon.")))
;;
;; Miniflux
;;
(define-maybe string)
(define-configuration miniflux-configuration
(miniflux
(file-like miniflux)
"The miniflux package.")
(log-file
(string "/var/log/miniflux.log")
"Where the logs go.")
(proxy-url
maybe-string
"Proxy URL to use.")
(options
(alist '())
"Association list of miniflux configuration options.")
(no-serialization))
(define %miniflux-accounts
(list (user-account
(name "miniflux")
(group "nogroup")
(system? #t)
(home-directory "/var/empty")
(shell (file-append shadow "/sbin/nologin")))))
(define %miniflux-postgresql-role
(list (postgresql-role
(name "miniflux")
(create-database? #t))))
(define miniflux-shepherd-service
(match-record-lambda <miniflux-configuration>
(miniflux log-file proxy-url options)
(let ((config-file (mixed-text-file
"miniflux.conf"
(apply string-append
(map (lambda (option)
(format #f "~a=~a~%"
(car option) (cdr option)))
options)))))
(list (shepherd-service
(documentation "Run miniflux.")
(provision '(miniflux))
(requirement '(postgres user-processes))
(start #~(make-forkexec-constructor
(list #$(file-append miniflux "/bin/miniflux")
"-config-file" #$config-file)
#:user "miniflux"
#:group "nogroup"
#:log-file #$log-file
#:environment-variables
'#$(if (maybe-value-set? proxy-url)
(list (string-append "HTTP_PROXY=" proxy-url)
(string-append "HTTPS_PROXY=" proxy-url))
'())))
(stop #~(make-kill-destructor)))))))
(define miniflux-service-type
(service-type
(name 'miniflux)
(extensions
(list (service-extension account-service-type
(const %miniflux-accounts))
(service-extension postgresql-role-service-type
(const %miniflux-postgresql-role))
(service-extension shepherd-root-service-type
miniflux-shepherd-service)))
(default-value (miniflux-configuration))
(description "Run Miniflux, a minimalist and opinionated feed reader.")))
;;
;; Wakapi
;;
(define-configuration home-wakapi-configuration
(wakapi
(file-like wakapi-bin)
"The wakapi package.")
(config
(yaml-config '())
"Association list of Wakapi configurations.")
(no-serialization))
(define home-wakapi-shepherd-service
(match-record-lambda <home-wakapi-configuration>
(wakapi config)
(let ((config-file (mixed-text-file
"wakapi.yaml"
#~(string-append #$@(serialize-yaml-config config) "\n"))))
(list (shepherd-service
(documentation "Run wakapi.")
(provision '(wakapi))
(start #~(make-forkexec-constructor
(list #$(file-append wakapi "/bin/wakapi")
"-config" #$config-file)))
(stop #~(make-kill-destructor))
(actions (list (shepherd-configuration-action config-file))))))))
(define home-wakapi-service-type
(service-type
(name 'home-wakapi)
(extensions
(list (service-extension home-shepherd-service-type
home-wakapi-shepherd-service)))
(default-value (home-wakapi-configuration))
(description "Run Wakapi, a self-hosted WakaTime-compatible backend.")))
;;
;; ShadowTLS
;;
(define-maybe list-of-strings
(no-serialization))
(define-configuration shadow-tls-client-configuration
(listen-address
(string "")
"Listen address with port. Usually this port is used by Shadowsocks
client.")
(server-address
(string "")
"ShadowTLS server address with port.")
(sni-list
(list-of-strings '(""))
"SNI list.")
(password
(string "")
"Must be the same as the ShadowTLS server.")
(alpn
maybe-list-of-strings
"ALPN ext. Do not use unless you know what you are doing.")
(no-serialization))
(define-configuration shadow-tls-server-configuration
(listen-address
(string "")
"Listen address with port.")
(server-address
(string "")
"Data server address with port. Usually this port is listened by Shadowsocks
server.")
(tls-name-list
(list-of-strings '(""))
"TLS names. There must be a fallback server name at the last, and there can
be multiple mappings. Mappings can be represented as
@code{ServerName:Host:Port}. Host can be omitted, in this case
@code{ServerName} is used as @code{Host}. @code{Port} can be omitted too, which
is @code{443} by default")
(password
(string "")
"Must be the same as the ShadowTLS client.")
(no-serialization))
(define-record-type* <shadow-tls-configuration> shadow-tls-configuration
make-shadow-tls-configuration
shadow-tls-configuration?
this-shadow-tls-configuration
(shadow-tls shadow-tls-configuration-shadow-tls ;file-like
(default shadow-tls-bin))
(threads shadow-tls-configuration-threads ;integer | #f
(default #f))
(no-delay? shadow-tls-configuration-disable-no-delay? ;boolean
(default #t))
(v3-protocol? shadow-tls-configuration-v3-protocol? ;boolean
(default #f))
(log-level shadow-tls-configuration-log-level ;string
(default "info"))
(client shadow-tls-configuration-client ;<shadow-tls-client-configuration> | #f
(default #f))
(server shadow-tls-configuration-server ;<shadow-tls-server-configuration> | #f
(default #f))
(home-service? shadow-tls-configuration-home-service?
(default for-home?) (innate)))
(define shadow-tls-shepherd-service
(match-record-lambda <shadow-tls-configuration>
(shadow-tls threads no-delay? v3-protocol? log-level client server
home-service?)
(let ((common-options
(append (if threads
`("--threads" ,(number->string threads))
'())
(if no-delay?
'()
'("--disable-nodelay"))
(if v3-protocol?
'("--v3")
'()))))
(append
(if client
(match-record client
<shadow-tls-client-configuration>
(listen-address server-address sni-list password alpn)
(let ((log-file
(if home-service?
#~(string-append %user-log-dir "/shadow-tls-client.log")
"/var/log/shadow-tls-client.log")))
(list (shepherd-service
(documentation "Run shadow-tls client.")
(provision '(shadow-tls-client))
(requirement (if home-service? '() '(networking)))
(modules '((shepherd support)))
(start #~(make-forkexec-constructor
(list #$(file-append
shadow-tls "/bin/shadow-tls")
#$@common-options
"client"
"--listen" #$listen-address
"--server" #$server-address
"--sni" #$(string-join sni-list ";")
"--password" #$password
#$@(if (maybe-value-set? alpn)
`("--alpn" ,(string-join alpn ";"))
'()))
#:user #$(and (not home-service?) "nobody")
#:group #$(and (not home-service?) "nogroup")
#:log-file #$log-file
#:environment-variables
(list (string-append "RUST_LOG=" #$log-level))))
(stop #~(make-kill-destructor))))))
'())
(if server
(match-record server
<shadow-tls-server-configuration>
(listen-address server-address tls-name-list password)
(let ((log-file
(if home-service?
#~(string-append %user-log-dir "/shadow-tls-server.log")
"/var/log/shadow-tls-server.log")))
(list (shepherd-service
(documentation "Run shadow-tls server.")
(provision '(shadow-tls-server))
(requirement (if home-service? '() '(networking)))
(modules '((shepherd support)))
(start #~(make-forkexec-constructor
(list #$(file-append
shadow-tls "/bin/shadow-tls")
#$@common-options
"server"
"--listen" #$listen-address
"--server" #$server-address
"--tls" #$(string-join tls-name-list ";")
"--password" #$password)
#:user #$(and (not home-service?) "nobody")
#:group #$(and (not home-service?) "nogroup")
#:log-file #$log-file))
(stop #~(make-kill-destructor))))))
'())))))
(define shadow-tls-service-type
(service-type
(name 'shadow-tls)
(extensions
(list (service-extension shepherd-root-service-type
shadow-tls-shepherd-service)))
(default-value (shadow-tls-server-configuration))
(description "Run shadow-tls.")))
(define home-shadow-tls-service-type
(service-type
(inherit (system->home-service-type shadow-tls-service-type))
(default-value (for-home (shadow-tls-configuration)))))
;;
;; Socks2http
;;
(define-configuration home-socks2http-configuration
(socks2http
(file-like socks2http)
"Socks2http package to use.")
(socks-address
(string ":1080")
"SOCKS5 proxy address to connect to.")
(http-address
(string ":8000")
"HTTP proxy address to serve.")
(no-serialization))
(define home-socks2http-shepherd-service
(match-record-lambda <home-socks2http-configuration>
(socks2http socks-address http-address)
(list (shepherd-service
(documentation "Run socks2http.")
(provision '(socks2http))
(start #~(make-forkexec-constructor
(list #$(file-append socks2http "/bin/socks2http")
"-raddr" #$socks-address
"-laddr" #$http-address)))
(stop #~(make-kill-destructor))))))
(define home-socks2http-service-type
(service-type
(name 'home-socks2http)
(extensions
(list (service-extension home-shepherd-service-type
home-socks2http-shepherd-service)))
(default-value (home-socks2http-configuration))
(description "Run socks2http.")))
(define-service-type-mapping
shadow-tls-service-type => home-shadow-tls-service-type)
+48
View File
@@ -0,0 +1,48 @@
;; SPDX-FileCopyrightText: 2022, 2023 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal services dns)
#:use-module (guix gexp)
#:use-module (guix records)
#:use-module (gnu services)
#:use-module (gnu services configuration)
#:use-module (gnu packages dns)
#:use-module (gnu services shepherd)
#:export (smartdns-configuration
smartdns-service-type))
;;
;; Smartdns
;;
(define-configuration smartdns-configuration
(smartdns
(file-like smartdns)
"The Smartdns package.")
(config-file
(file-like (plain-file "empty" ""))
"Configuration file for Smartdns.")
(no-serialization))
(define smartdns-shepherd-service
(match-record-lambda <smartdns-configuration>
(smartdns config-file)
(list (shepherd-service
(documentation "Run smartdns.")
(provision '(smartdns dns))
(requirement '(loopback networking))
(start #~(make-forkexec-constructor
(list #$(file-append smartdns "/sbin/smartdns")
"-f" "-c" #$(file-append config-file))))
(stop #~(make-kill-destructor))))))
(define smartdns-service-type
(service-type
(name 'smartdns)
(extensions
(list (service-extension shepherd-root-service-type
smartdns-shepherd-service)))
(default-value (smartdns-configuration))
(description "Run Smartdns daemon.")))
@@ -0,0 +1,91 @@
;; SPDX-FileCopyrightText: 2024 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal services file-systems)
#:use-module (guix gexp)
#:use-module (gnu packages backup)
#:use-module (rosenthal packages admin)
#:use-module (gnu services)
#:use-module (gnu services configuration)
#:use-module (gnu services mcron)
#:use-module (gnu system pam)
#:export (btrbk-service-type
btrbk-configuration
dumb-runtime-dir-service-type))
;;
;; Btrbk
;;
(define-configuration btrbk-configuration
(btrbk
(file-like btrbk)
"@code{btrbk} package to use.")
(config-file
(file-like (plain-file "empty" ""))
"File-like object for btrbk configuration, see also @code{btrbk.conf(5)}.")
(no-serialization))
(define (btrbk-etc-service config)
`(("btrbk/btrbk.conf" ,(btrbk-configuration-config-file config))))
(define (btrbk-mcron-jobs config)
(list #~(job next-hour-from
#$(file-append (btrbk-configuration-btrbk config)
"/bin/btrbk run --quiet"))))
(define btrbk-service-type
(service-type
(name 'btrbk)
(extensions
(list (service-extension etc-service-type
btrbk-etc-service)
(service-extension mcron-service-type
btrbk-mcron-jobs)))
(default-value (btrbk-configuration))
(description "Configure and run btrbk hourly.")))
;;;
;;; pam-dumb-runtime-dir
;;;
(define dumb-runtime-dir-activation
#~(begin
(use-modules (guix build utils))
(mkdir-p "/run/user")
(chmod "/run/user" #o0755)))
(define dumb-runtime-dir-pam-service
(let ((optional-pam-entry
(pam-entry
(control "optional")
(module
(file-append
pam-dumb-runtime-dir "/lib/security/pam_dumb_runtime_dir.so")))))
(list (pam-extension
(transformer
(lambda (pam)
(if (string=? (pam-service-name pam) "login")
(pam-service
(inherit pam)
(session
(cons optional-pam-entry
(pam-service-session pam))))
pam)))))))
(define dumb-runtime-dir-service-type
(service-type
(name 'dumb-runtime-dir)
(extensions
(list (service-extension activation-service-type
(const dumb-runtime-dir-activation))
(service-extension pam-root-service-type
(const dumb-runtime-dir-pam-service))))
(default-value #f) ;No default value required.
(description "Create @code{XDG_RUNTIME_DIR} on login and never remove it.")))
+28
View File
@@ -0,0 +1,28 @@
;;; SPDX-FileCopyrightText: 2021 Andrew Tropin <andrew@trop.in>
;;;
;;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal services keyboard)
#:use-module (gnu system keyboard)
#:use-module (gnu home services)
#:export (home-keyboard-service-type))
(define (set-xkb-variables layout)
(if layout
`(("XKB_DEFAULT_LAYOUT" . ,(keyboard-layout-name layout))
("XKB_DEFAULT_VARIANT" . ,(keyboard-layout-variant layout))
("XKB_DEFAULT_OPTIONS" . ,(string-join
(keyboard-layout-options layout) ","))
("XKB_DEFAULT_MODEL" . ,(keyboard-layout-model layout)))
'()))
(define home-keyboard-service-type
(service-type (name 'home-keyboard)
(extensions
(list (service-extension
home-environment-variables-service-type
set-xkb-variables)))
(default-value #f)
(description "Set layouts by configuring XKB_*
environment variables. Service accepts an instance of
@code{keyboard-layout} from @code{(gnu system keyboard)}.")))
+68
View File
@@ -0,0 +1,68 @@
;; SPDX-FileCopyrightText: 2024 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal services mail)
#:use-module (srfi srfi-26)
#:use-module (guix records)
#:use-module (gnu services)
#:use-module (gnu services admin)
#:use-module (gnu services configuration)
#:use-module (gnu services docker)
#:export (docker-mailserver-configuration
docker-mailserver-service-type))
;;;
;;; Docker Mailserver
;;; https://docker-mailserver.github.io/docker-mailserver/latest/
;;;
(define-configuration docker-mailserver-configuration
(data-directory
(string "/var/lib/docker-mailserver")
"Directory to store Docker Mailserver data.")
(log-file
(string "/var/log/docker-mailserver.log")
"Path to log file.")
(shepherd-requirement
(list-of-symbols '())
"List of Shepherd service dependencies.")
(options
(alist '())
"Alist of Docker Mailserver configuration. See also
@url{https://docker-mailserver.github.io/docker-mailserver/latest/config/environment/}.")
(extra-arguments
(list '())
"List of extra Docker arguments.")
(no-serialization))
(define docker-mailserver-oci-containers
(match-record-lambda <docker-mailserver-configuration>
(data-directory log-file shepherd-requirement options extra-arguments)
(let ((docker-mailserver-path
(cut string-append data-directory <>)))
(list (oci-container-configuration
(environment options)
(image "ghcr.io/docker-mailserver/docker-mailserver:latest")
(provision "docker-mailserver")
(requirement shepherd-requirement)
(log-file log-file)
(network "host")
(volumes
`((,(docker-mailserver-path "/data") . "/var/mail")
(,(docker-mailserver-path "/state") . "/var/mail-state")
(,(docker-mailserver-path "/logs") . "/var/log/mail")
(,(docker-mailserver-path "/config") . "/tmp/docker-mailserver")
("/etc/localtime" . "/etc/localtime:ro")))
(extra-arguments extra-arguments))))))
(define docker-mailserver-service-type
(service-type
(name 'docker-mailserver)
(extensions
(list (service-extension oci-container-service-type
docker-mailserver-oci-containers)
(service-extension log-rotation-service-type
(compose list docker-mailserver-configuration-log-file))))
(default-value (docker-mailserver-configuration))
(description "Run Docker Mailserver.")))
+445
View File
@@ -0,0 +1,445 @@
;; SPDX-FileCopyrightText: 2023 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal services networking)
#:use-module (srfi srfi-1)
#:use-module (ice-9 match)
#:use-module (guix gexp)
#:use-module (guix records)
#:use-module (gnu packages linux)
#:use-module (gnu packages networking)
#:use-module (rosenthal packages networking)
#:use-module (gnu services)
#:use-module (gnu services admin)
#:use-module (gnu services configuration)
#:use-module (gnu services dbus)
#:use-module (gnu services shepherd)
#:export (iwd-configuration
iwd-service-type
tailscale-configuration
tailscale-service-type))
;;
;; iwd
;;
(define %iwd-config-general
'(enable-network-configuration?
use-default-interface?
address-randomization
address-randomization-range
roam-threshold
roam-threshold-5g
roam-retry-interval
management-frame-protection
control-port-over-nl80211?
disable-anqp?
disable-ocv?
country))
(define %iwd-config-network
'(enable-ipv6?
name-resolving-service
route-priority-offset))
(define %iwd-config-blacklist
'(initial-timeout
multiplier
maximum-timeout))
(define %iwd-config-rank
'(band-modifier-5ghz
band-modifier-6ghz))
(define %iwd-config-scan
'(disable-periodic-scan?
initial-periodic-scan-interval
maximum-periodic-scan-interval
disable-roaming-scan?))
(define %iwd-config-ipv4
'(ap-address-pool))
(define %iwd-config-driver-quirks
'(default-interface
force-pae
power-save-disable))
(define (uglify-field-name field-name)
(case field-name
((control-port-over-nl80211?) "ControlPortOverNL80211")
((disable-anqp?) "DisableANQP")
((disable-ocv?) "DisableOCV")
((enable-ipv6?) "EnableIPv6")
((ap-address-pool) "APAddressPool")
(else (string-delete char-set:punctuation
(string-capitalize (symbol->string field-name))))))
(define (serialize-field field-name val)
(format #f "~a = ~a~%" (uglify-field-name field-name) val))
(define serialize-string serialize-field)
(define-maybe string)
(define (serialize-boolean field-name val)
(serialize-field field-name (if val "true" "false")))
(define cidr4? (@@ (gnu services vpn) cidr4?))
(define serialize-cidr4 serialize-field)
(define-maybe cidr4)
(define (randomization-method? val)
(memv val '(#f once network)))
(define (serialize-randomization-method field-name val)
(serialize-field field-name (or val 'disabled)))
(define (randomization-range? val)
(memv val '(full nic)))
(define serialize-randomization-range serialize-field)
(define (signal-strength? val)
(and (number? val)
(>= val -100)
(<= val 1)))
(define serialize-signal-strength serialize-field)
(define (seconds? val)
(and (integer? val)
(not (negative? val))))
(define serialize-seconds serialize-field)
(define (protection-mode? val)
(memv val '(0 1 2)))
(define serialize-protection-mode serialize-field)
(define (resolution-method? val)
(memv val '(#f resolvconf)))
(define (serialize-resolution-method field-name val)
(serialize-field field-name (or val 'none)))
(define serialize-integer serialize-field)
(define serialize-number serialize-field)
(define (serialize-list-of-strings field-name val)
(serialize-field field-name (string-join val ",")))
(define-maybe list-of-strings)
(define list-of-cidr4? (list-of cidr4?))
(define serialize-list-of-cidr4 serialize-list-of-strings)
(define-configuration iwd-configuration
(iwd
(file-like iwd)
"The iwd package to use.")
(log-file
(string "/var/log/iwd.log")
"Log file location.")
;; General
(enable-network-configuration?
(boolean #f)
"Enable network configuration.")
(use-default-interface?
(boolean #f)
"Do not allow iwd to destroy / recreate wireless interfaces at startup,
including default interfaces.")
(address-randomization
(randomization-method #f)
"Available values are @code{#f}, @code{once} and @code{network}. @code{#f}
for default kernel behavior, @code{once} to randomize the MAC address when iwd
starts or the hardware is detected for the first time, @code{network} to
randomize the MAC address on each connection to a network (the MAC address is
generated based on the SSID and permanent address of the adapter).")
(address-randomization-range
(randomization-range 'full)
"Available values are @code{nic} and @code{full}. @code{nic} to only
randomize the NIC specific octets (last 3 ones), @code{full} to randomize all
6 octets of the address.")
(roam-threshold
(signal-strength -70)
"Value in dBm, control how aggressively iwd roams when connected to a 2.4Ghz
access point.")
(roam-threshold-5g
(signal-strength -76)
"Value in dBm, control how aggressively iwd roams when connected to a 5Ghz
access point.")
(roam-retry-interval
(seconds 60)
"How long to wait before attempting to roam again if the last roam attempt
failed, or if the signal of the newly connected BSS is still considered weak.")
(management-frame-protection
(protection-mode 1)
"Available values are @code{0}, @code{1} and @code{2}. @code{0} to
completely turn off MFP (even if the hardware is capable), @code{1} to enable
MFP if the local hardware and remote AP both support it, @code{2} to always
require MFP.")
(control-port-over-nl80211?
(boolean #t)
"Enable sending EAPoL packets over NL80211.")
(disable-anqp?
(boolean #t)
"Disable ANQP queries.")
(disable-ocv?
(boolean #f)
"Disable Operating Channel Validation.")
(country
maybe-string
"ISO Alpha-2 Country Code. Request the country to be set for the system.")
;; Network
(enable-ipv6?
(boolean #t)
"Configure IPv6 addresses and routes.")
(name-resolving-service
(resolution-method 'resolvconf)
"Available values are @code{resolvconf} and @code{#f}. Configure a DNS
resolution method used by the system and must be used in conjunction with
@code{enable-network-configuration?}. @code{#f} to ignore DNS and domain name
information.")
(route-priority-offset
(integer 300)
"Configure a route priority offset used by the system to prioritize the
default routes. The route with lower priority offset is preferred.")
;; Blacklist
(initial-timeout
(seconds 60)
"The initial time that a BSS spends on the blacklist.")
(multiplier
(integer 30)
"If the BSS was blacklisted previously and another connection attempt has
failed after the initial timeout has expired, then the BSS blacklist time will
be extended by a multiple of @code{multiplier} for each unsuccessful attempt up
to @code{maximum-timeout} time.")
(maximum-timeout
(seconds 86400)
"Maximum time that a BSS is blacklisted.")
;; Rank
(band-modifier-5ghz
(number 1.0)
"Increase or decrease the preference for 5GHz access points by increasing or
decreasing the value of this modifier.")
(band-modifier-6ghz
(number 1.0)
"Increase or decrease the preference for 6GHz access points by increasing or
decreasing the value of this modifier.")
;; Scan
(disable-periodic-scan?
(boolean #f)
"Disable periodic scan.")
(initial-periodic-scan-interval
(seconds 10)
"The initial periodic scan interval upon disconnect.")
(maximum-periodic-scan-interval
(seconds 300)
"The maximum periodic scan interval.")
(disable-roaming-scan?
(boolean #f)
"Disable roaming scan.")
;; IPv4
(ap-address-pool
(list-of-cidr4 '("192.168.0.0/16"))
"Define the space of IPs used for the AP mode subnet addresses and the DHCP
server.")
;; DriverQuirks
(default-interface
maybe-list-of-strings
"List of drivers or glob matches. If a driver in use matches one in this
list, IWD will not attempt to remove and re-create the default interface.")
(force-pae
maybe-list-of-strings
"List of drivers or glob matches. If a driver in use matches one in this
list, @code{control-port-over-nl80211?} will not be used, and PAE will be used
instead.")
(power-save-disable
maybe-list-of-strings
"List of drivers or glob matches. If a driver in use matches one in this
list, power save will be disabled."))
(define (serialize-iwd-configuration config)
(apply mixed-text-file "main.conf"
(append-map
(match-lambda
((section . fields)
(list "[" section "]\n"
(serialize-configuration
config
(filter-configuration-fields
iwd-configuration-fields
fields)))))
`(("General" . ,%iwd-config-general)
("Network" . ,%iwd-config-network)
("Blacklist" . ,%iwd-config-blacklist)
("Rank" . ,%iwd-config-rank)
("Scan" . ,%iwd-config-scan)
("IPv4" . ,%iwd-config-ipv4)
("DriverQuirks" . ,%iwd-config-driver-quirks)))))
(define (add-iwd-config-file config)
`(("iwd/main.conf"
,(serialize-iwd-configuration config))))
(define add-iwd-package
(compose list iwd-configuration-iwd))
(define (iwd-shepherd-service config)
(match-record config <iwd-configuration>
(iwd log-file
enable-network-configuration? name-resolving-service)
(let ((conf (serialize-iwd-configuration config)))
(list (shepherd-service
(documentation "Run iwd")
(provision `(,@(if enable-network-configuration?
'(networking)
'())
iwd))
(requirement '(user-processes dbus-system))
(start #~(make-forkexec-constructor
(list (string-append #$iwd "/libexec/iwd"))
#:log-file #$log-file))
(stop #~(make-kill-destructor))
(actions
(list (shepherd-configuration-action "/etc/iwd/main.conf"))))))))
(define iwd-service-type
(service-type
(name 'iwd)
(extensions
(list (service-extension shepherd-root-service-type
iwd-shepherd-service)
(service-extension dbus-root-service-type
add-iwd-package)
(service-extension etc-service-type
add-iwd-config-file)
(service-extension profile-service-type
add-iwd-package)
(service-extension log-rotation-service-type
(compose list iwd-configuration-log-file))))
(default-value (iwd-configuration))
(description "Run iwd, the iNet wireless daemon.")))
;;
;; Tailscale
;;
(define-configuration tailscale-configuration
(tailscale
(file-like tailscale)
"The tailscale package to use.")
(iptables
(file-like iptables-nft)
"The iptables package to use.")
(log-file
(string "/var/log/tailscaled.log")
"Path to log file.")
(socket
(string "/var/run/tailscale/tailscaled.sock")
"Path of the service UNIX socket.")
(state-directory
(string "/var/lib/tailscale")
"Path to directory for storage of config state, TLS certs, temporary incoming
Taildrop files, etc. If empty, it's derived from @code{state-file} when
possible.")
(upload-log?
(boolean #f)
"Whether to upload logs or not, technical support is also disabled when set
to #f.")
(verbosity
(integer 0)
"Log verbosity level; 0 is default, 1 or higher are increasingly verbose.")
(extra-options
(list-of-strings '())
"List of extra options.")
(no-serialization))
(define tailscale-shepherd-service
(match-record-lambda <tailscale-configuration>
(tailscale iptables log-file socket state-directory
upload-log? verbosity extra-options)
(let ((environment
#~(list (string-append "PATH="
(string-join
'(#$(file-append iptables "/sbin")
#$(file-append iproute "/sbin"))
":")))))
(list (shepherd-service
(documentation "Run tailscaled")
(provision '(tailscaled))
(requirement '(user-processes))
(start
#~(make-forkexec-constructor
(list
#$(file-append tailscale "/bin/tailscaled")
#$@(if upload-log?
'()
'("-no-logs-no-support"))
"-socket" #$socket
"-statedir" #$state-directory
"-verbose" #$(number->string verbosity)
#$@extra-options)
#:environment-variables #$environment
#:log-file #$log-file))
(stop #~(make-kill-destructor)))))))
(define tailscale-service-type
(service-type
(name 'tailscaled)
(extensions
(list (service-extension shepherd-root-service-type
tailscale-shepherd-service)
(service-extension profile-service-type
(compose list tailscale-configuration-tailscale))
(service-extension log-rotation-service-type
(compose list tailscale-configuration-log-file))))
(default-value (tailscale-configuration))
(description "Run tailscaled.")))
+459
View File
@@ -0,0 +1,459 @@
;; SPDX-FileCopyrightText: 2024 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal services web)
#:use-module (guix gexp)
#:use-module (guix records)
#:use-module (gnu packages admin)
#:use-module (gnu packages version-control)
#:use-module (rosenthal packages binaries)
#:use-module (rosenthal packages web)
#:use-module (gnu services)
#:use-module (gnu services admin)
#:use-module (gnu services configuration)
#:use-module (gnu services databases)
#:use-module (gnu services docker)
#:use-module (gnu services shepherd)
#:use-module (gnu system shadow)
#:use-module (rosenthal utils home-services-utils)
#:export (forgejo-configuration
forgejo-service-type
jellyfin-configuration
jellyfin-service-type
komga-configuration
komga-service-type
misskey-configuration
misskey-service-type
vaultwarden-configuration
vaultwarden-service-type))
;;
;; Forgejo
;;
(define (file-object? val)
(or (string? val)
(file-like? val)))
(define list-of-file-likes?
(list-of file-like?))
(define-configuration forgejo-configuration
(forgejo
(file-like forgejo)
"Package to provide @file{/bin/forgejo}.")
(git-packages
(list-of-file-likes (list git git-lfs))
"@code{git} and extension packages to install.")
(config-file
(file-object "/var/lib/forgejo/app.ini")
"Filesystem path or file-like object of Forgejo configuration,
@file{app.ini}.")
(no-serialization))
(define %forgejo-accounts
(list (user-group (name "forgejo") (system? #t))
(user-account
(name "forgejo")
(group "forgejo")
(system? #t)
(comment "Forgejo user")
(home-directory "/var/lib/forgejo"))))
(define %forgejo-postgresql-role
(list (postgresql-role
(name "forgejo")
(create-database? #t))))
(define forgejo-activation
#~(begin
(use-modules (guix build utils))
(let ((dir "/var/lib/forgejo")
(user (getpwnam "forgejo")))
(mkdir-p dir)
(chown dir (passwd:uid user) (passwd:gid user))
(chmod dir #o750))))
(define forgejo-shepherd-service
(match-record-lambda <forgejo-configuration>
(forgejo config-file)
(list (shepherd-service
(documentation "Run Forgejo.")
(provision '(forgejo))
(requirement '(loopback postgresql))
(start
#~(make-forkexec-constructor
(list #$(file-append forgejo "/bin/forgejo")
"--config" #$config-file)
#:user "forgejo"
#:group "forgejo"
#:log-file "/var/log/forgejo.log"
#:environment-variables
'("GIT_EXEC_PATH=/run/current-system/profile/libexec/git-core"
"GIT_SSL_CAINFO=/run/current-system/profile/etc/ssl/certs/ca-certificates.crt"
"HOME=/var/lib/forgejo"
"PATH=/run/current-system/profile/bin"
"SSL_CERT_DIR=/run/current-system/profile/etc/ssl/certs"
"SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt")
#:resource-limits '((nofile 524288 524288))))
(stop
#~(make-kill-destructor))
(actions
(list (shepherd-configuration-action config-file)))))))
(define forgejo-service-type
(service-type
(name 'forgejo)
(extensions
(list (service-extension account-service-type
(const %forgejo-accounts))
(service-extension postgresql-role-service-type
(const %forgejo-postgresql-role))
(service-extension profile-service-type
forgejo-configuration-git-packages)
(service-extension activation-service-type
(const forgejo-activation))
(service-extension shepherd-root-service-type
forgejo-shepherd-service)))
(default-value (forgejo-configuration))
(description "Run Forgejo.")))
;;
;; Jellyfin
;;
(define-maybe string)
(define-configuration jellyfin-configuration
(cache-directory
(string "/var/cache/jellyfin")
"Path to cache directory.")
(config-directory
(string "/var/lib/jellyfin")
"Path to configuration directory.")
(proxy-url
maybe-string
"Proxy URL.")
(log-file
(string "/var/log/jellyfin.log")
"Path to log file.")
(auto-start?
(boolean #t)
"Whether to start automatically.")
(extra-options
(list '())
"List of extra options.")
(no-serialization))
(define %jellyfin-accounts
(list (user-account
(name "jellyfin")
(group "docker")
(system? #t)
(home-directory "/var/empty")
(shell (file-append shadow "/sbin/nologin")))))
(define jellyfin-activation
(match-record-lambda <jellyfin-configuration>
(cache-directory config-directory)
#~(let ((user (getpwnam "jellyfin")))
(for-each
(lambda (directory)
(unless (file-exists? directory)
(mkdir-p directory)
(chown directory (passwd:uid user) (passwd:gid user))))
'#$(list cache-directory config-directory)))))
(define jellyfin-oci-containers
(match-record-lambda <jellyfin-configuration>
(cache-directory config-directory
proxy-url log-file auto-start? extra-options)
(list (oci-container-configuration
(user "jellyfin")
(group "docker")
(environment
(if (maybe-value-set? proxy-url)
`(("http_proxy" . ,proxy-url)
("https_proxy" . ,proxy-url))
'()))
(image "jellyfin/jellyfin:latest")
(provision "jellyfin")
(log-file log-file)
(auto-start? auto-start?)
(respawn? #t)
(network "host")
(volumes
`((,cache-directory . "/cache")
(,config-directory . "/config")))
(extra-arguments extra-options)))))
(define jellyfin-service-type
(service-type
(name 'jellyfin)
(extensions
(list (service-extension account-service-type
(const %jellyfin-accounts))
(service-extension activation-service-type
jellyfin-activation)
(service-extension log-rotation-service-type
(compose list jellyfin-configuration-log-file))
(service-extension oci-container-service-type
jellyfin-oci-containers)))
(default-value (jellyfin-configuration))
(description "Run Jellyfin, a media system.")))
;;;
;;; Komga
;;;
(define-configuration komga-configuration
(komga
(file-like komga-bin)
"Package to provide @file{/bin/komga}.")
(port
(integer 25600)
"Port to listen to for the API and web interface.")
(auto-start?
(boolean #t)
"Whether to start automatically.")
(no-serialization))
(define %komga-accounts
(list (user-group (name "komga") (system? #t))
(user-account
(name "komga")
(group "komga")
(system? #t)
(comment "Komga user")
(home-directory "/var/lib/komga"))))
(define komga-shepherd-service
(match-record-lambda <komga-configuration>
(komga port auto-start?)
(list (shepherd-service
(documentation "Run Komga.")
(provision '(komga))
(requirement '(loopback))
(start
#~(make-forkexec-constructor
(list #$(file-append komga "/bin/komga"))
#:user "komga"
#:group "komga"
#:log-file "/var/log/komga.log"
#:environment-variables
'("KOMGA_CONFIGDIR=/var/lib/komga"
#$(string-append "SERVER_PORT=" (number->string port)))))
(stop
#~(make-kill-destructor))
(auto-start? auto-start?)))))
(define komga-service-type
(service-type
(name 'komga)
(extensions
(list (service-extension account-service-type
(const %komga-accounts))
(service-extension shepherd-root-service-type
komga-shepherd-service)))
(default-value (komga-configuration))
(description "Run Komga.")))
;;
;; Misskey
;;
(define-configuration misskey-configuration
(image
(string "misskey/misskey:latest")
"Misskey docker image to use.")
(config
(yaml-config '())
"Alist of Misskey configuration, to be serialized to YAML format.")
(data-directory
(string "/var/lib/misskey")
"Directory to store @file{files} in.")
(log-file
(string "/var/log/misskey.log")
"Log file to use.")
(no-serialization))
(define %misskey-accounts
(list (user-account
(name "misskey")
(group "docker")
(system? #t)
(home-directory "/var/empty")
(shell (file-append shadow "/sbin/nologin")))))
(define %misskey-postgresql-role
(list (postgresql-role
(name "misskey")
(create-database? #t))))
(define misskey-activation
(match-record-lambda <misskey-configuration>
(data-directory)
#~(begin
(use-modules (guix build utils))
(let ((user (getpwnam "misskey")))
(unless (file-exists? #$data-directory)
(mkdir-p #$data-directory)
(chown #$data-directory (passwd:uid user) (passwd:gid user)))))))
(define misskey-oci-containers
(match-record-lambda <misskey-configuration>
(image config data-directory log-file )
(let ((config-file
(mixed-text-file
"misskey.yaml"
#~(string-append #$@(serialize-yaml-config config) "\n"))))
(list (oci-container-configuration
(user "misskey")
(group "docker")
(image image)
(provision "misskey")
(requirement '(postgresql redis))
(log-file log-file)
(respawn? #t)
(network "host")
(volumes
`((,(string-append data-directory "/files") . "/misskey/files")
(,config-file . "/misskey/.config/default.yml"))))))))
(define misskey-service-type
(service-type
(name 'misskey)
(extensions
(list (service-extension account-service-type
(const %misskey-accounts))
(service-extension postgresql-role-service-type
(const %misskey-postgresql-role))
(service-extension log-rotation-service-type
(compose list misskey-configuration-log-file))
(service-extension activation-service-type
misskey-activation)
(service-extension oci-container-service-type
misskey-oci-containers)))
(default-value (misskey-configuration))
(description "Run Misskey, an interplanetary microblogging platform.")))
;;
;; Vaultwarden
;;
(define-configuration vaultwarden-configuration
(admin-token
maybe-string
"Token for the admin interface, preferably an Argon2 PCH string.")
(database-url
(string "postgresql://user:password@host:port/database")
"Database URL.")
(port
(integer 8000)
"Port to listen on.")
(data-directory
(string "/var/lib/vaultwarden")
"Main data folder.")
(log-file
(string "/var/log/vaultwarden.log")
"Logging to this file.")
(proxy-url
maybe-string
"Proxy URL to use.")
(extra-options
(alist '())
"Extra options.")
(no-serialization))
(define %vaultwarden-accounts
(list (user-account
(name "vaultwarden")
(group "docker")
(system? #t)
(home-directory "/var/empty")
(shell (file-append shadow "/sbin/nologin")))))
(define %vaultwarden-postgresql-role
(list (postgresql-role
(name "vaultwarden")
(create-database? #t))))
(define vaultwarden-activation
(match-record-lambda <vaultwarden-configuration>
(data-directory log-file)
#~(begin
(use-modules (guix build utils))
(let ((user (getpwnam "vaultwarden")))
(unless (file-exists? #$data-directory)
(mkdir-p #$data-directory)
(chown #$data-directory (passwd:uid user) (passwd:gid user)))
(unless (file-exists? #$log-file)
(mkdir-p (dirname #$log-file))
(call-with-output-file #$log-file
(lambda (port)
(write-char #\newline port)))
(chown #$log-file (passwd:uid user) (passwd:gid user)))))))
(define vaultwarden-oci-containers
(match-record-lambda <vaultwarden-configuration>
(admin-token database-url port data-directory log-file proxy-url extra-options)
(list (oci-container-configuration
(user "vaultwarden")
(group "docker")
(host-environment
`(,@(if (maybe-value-set? admin-token)
`(("ADMIN_TOKEN" . ,admin-token))
'())
("DATABASE_URL" . ,database-url)))
(environment
`(,@(if (maybe-value-set? proxy-url)
`(("HTTP_PROXY" . ,proxy-url))
'())
("LOG_FILE" . "vaultwarden.log")
("ROCKET_PORT" . ,(number->string port))
("USE_SYSLOG" . "True")
,@extra-options))
(image "vaultwarden/server:latest-alpine")
(provision "vaultwarden")
(requirement '(postgresql))
(respawn? #t)
(network "host")
(volumes
`((,data-directory . "/data")
(,log-file . "/vaultwarden.log")))
(extra-arguments
`(,@(if (maybe-value-set? admin-token)
'("--env" "ADMIN_TOKEN")
'())
"--env" "DATABASE_URL"))))))
(define vaultwarden-service-type
(service-type
(name 'vaultwarden)
(extensions
(list (service-extension account-service-type
(const %vaultwarden-accounts))
(service-extension postgresql-role-service-type
(const %vaultwarden-postgresql-role))
(service-extension activation-service-type
vaultwarden-activation)
(service-extension log-rotation-service-type
(compose list vaultwarden-configuration-log-file))
(service-extension oci-container-service-type
vaultwarden-oci-containers)))
(default-value (vaultwarden-configuration))
(description "Run Vaultwarden, a Bitwarden compatible server.")))
+50
View File
@@ -0,0 +1,50 @@
;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal utils download)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix build-system gnu)
#:use-module (guix build-system go)
#:export (go-vendored-fetch))
;; NOTE: This approach shouldn't be upstreamed.
(define* (go-vendored-fetch src hash-algo hash
#:optional name
#:key (system (%current-system))
(go
(module-ref
(resolve-interface '(gnu packages golang))
;; Use latest Go in Guix.
'go-1.23))
(nss-certs
(module-ref
(resolve-interface '(gnu packages certs))
'nss-certs)))
(gexp->derivation
(or name
(string-append (origin-file-name src) "-vendored"))
(with-imported-modules %default-gnu-imported-modules
#~(begin
(use-modules (guix build gnu-build-system)
(guix build utils))
(setenv "GOCACHE" "/tmp/go")
(setenv "GOMODCACHE" "/tmp/gomod")
(setenv "SSL_CERT_DIR" #+(file-append nss-certs "/etc/ssl/certs"))
;; Support Unicode in file name.
(setlocale LC_ALL "C.UTF-8")
((assoc-ref %standard-phases 'unpack) #:source #+src)
(invoke #+(file-append go "/bin/go") "mod" "vendor")
(copy-recursively "." #$output)))
#:system system
#:hash-algo hash-algo
#:hash hash
;; Is a directory.
#:recursive? #t
;; Honor the user's proxy and locale settings.
#:leaked-env-vars '("http_proxy" "https_proxy"
"LC_ALL" "LC_MESSAGES" "LANG"
"COLUMNS")
#:local-build? #t))
@@ -0,0 +1,441 @@
;; SPDX-FileCopyrightText: 2021 Xinglu Chen <public@yoctocell.xyz>
;; SPDX-FileCopyrightText: 2021 Andrew Tropin <andrew@trop.in>
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal utils home-services-utils)
#:use-module (gnu services configuration)
#:use-module (gnu home services utils)
#:use-module (guix ui)
#:use-module (guix diagnostics)
#:use-module (guix gexp)
#:use-module (guix monads)
#:use-module (guix i18n)
#:use-module (guix profiles)
#:use-module (guix packages)
#:use-module (guix build-system trivial)
#:use-module (guix deprecation)
#:use-module (ice-9 curried-definitions)
#:use-module (ice-9 match)
#:use-module (ice-9 string-fun)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-9)
#:use-module (srfi srfi-171)
#:use-module (srfi srfi-26)
#:use-module (srfi srfi-43)
#:re-export (filter-configuration-fields
list-of
list-of-strings?
alist?
text-config?
serialize-text-config
generic-serialize-alist-entry
generic-serialize-alist
maybe-object->string
object->snake-case-string
object->camel-case-string)
#:export (slurp-file-gexp
alist-entry->mixed-text
boolean->yes-or-no
boolean->true-or-false
list->human-readable-list
ini-config?
generic-serialize-ini-config
generic-serialize-git-ini-config
yaml-config?
serialize-yaml-config
string-or-gexp?
serialize-string-or-gexp
gexp-text-config?
serialize-gexp-text-config
rest
maybe-list
optional
wrap-package
define-enum
enum-name
enum-value))
;;;
;;; User's utils.
;;;
(define* (slurp-file-gexp file #:key (encoding "UTF-8"))
"Returns a gexp, which reads all the content of the FILE and returns
it as a string. FILE must be a file-like object."
(when (not (file-like? file))
(raise (formatted-message
(G_ "~a is not a file-like object.")
file)))
#~(call-with-input-file #$file
(@ (ice-9 textual-ports) get-string-all)
#:encoding #$encoding))
(define-deprecated/alias slurp-file-gexp slurp-file-like)
;;;
;;; Configuration related helpers.
;;;
(define* ((alist-entry->mixed-text prefix sep #:optional (suffix "\n"))
alist-entry)
"Create a list from ALIST-ENTRY, which can be used with
@code{mixed-text-file} for example to create key-value configuration
file or shell script.
PREFIX is the string to prefix the key-value pair with. For example,
@code{\"export\"} will return @code{'(\"export\" KEY SEP VALUE)},
where KEY is the first element of ALIST-ENTRY, and VALUE is the second
element of ALIST-ENTRY.
SEP is the separator between the key and the value.
SUFFIX is the optional argument, default to newline.
Different things will happen depending on the value of VALUE:
@itemize @bullet
@item If VALUE is #f, ignore everything in the entry and just return
an empty list.
@item If VALUE is #t or not provided (empty list), ignore the VALUE
and SEP and just return a list of PREFIX and KEY followed by a
SUFFIX.
@item If VALUE is a flat list, it will get added to the resulting
list. If not flat the exception will be raised.
@item If VALUE is not a list (string, file-like object, etc), return a
list of PREFIX, KEY, SEP and VALUE followed by a SUFFIX.
The following code
@lisp
((alist-entry->mixed-text \"export \" \"=\") '(\"EDITOR\" . \"emacsclient\"))
((alist-entry->mixed-text \"export \" \"=\") '(\"EDITOR\" . #t))
((alist-entry->mixed-text \"export \" \"=\") '(\"EDITOR\"))
((alist-entry->mixed-text \"export \" \"=\") '(\"EDITOR\" . #f))
((alist-entry->mixed-text \"export \" \"=\") '(\"EDITOR\" . (\"emacsclient\" \"vim\")))
@end lisp
would yield
@example
(\"export \" \"EDITOR\" \"=\" \"emacsclient\" \"\n\")
(\"export \" \"EDITOR\" \"\n\")
(\"export \" \"EDITOR\" \"\n\")
()
(\"export \" \"EDITOR\" \"=\" \"emacsclient\" \"vim\" \"\n\")
@end example"
(define (not-alist-entry-error)
(raise (formatted-message
(G_ "~a has to be an association list entry")
alist-entry)))
(match alist-entry
((key . value)
(let* ((values (cond
((eq? value #f)
#f)
((or (eq? value #t) (null? value))
'(""))
((list? value)
(if (any list? value)
(raise (formatted-message
(G_ "~a is not a flat list")
value))
value))
(else
(list value))))
(sep (if (eq? values '(""))
""
sep)))
(if values
`(,prefix ,key ,sep ,@values ,suffix)
'())))
(_ (not-alist-entry-error))))
(define* (boolean->yes-or-no bool #:optional (capitalize? #f))
"Convert a boolean BOOL to \"yes\" or \"no\".
Setting CAPITALIZE? to @code{#t} will capitalize the word, it is set to
@code{#f} by default."
(let ((word (if (eq? bool #t) "yes" "no")))
(if capitalize?
(string-capitalize word)
word)))
(define* (boolean->true-or-false bool #:optional (capitalize? #f))
"Convert a boolean BOOL to \"true\" or \"false\".
Setting CAPITALIZE? to @code{#t} will capitalize the word, it is set to
@code{#f} by default."
(let ((word (if bool "true" "false")))
(if capitalize?
(string-capitalize word)
word)))
;; TODO: Remove once upstreamed
(define* (list->human-readable-list lst
#:key
(cumulative? #f)
(proc identity))
"Turn a list LST into a sequence of terms readable by humans.
If CUMULATIVE? is @code{#t}, use ``and'', otherwise use ``or'' before
the last term.
PROC is a procedure to apply to each of the elements of a list before
turning them into a single human readable string.
@example
(list->human-readable-list '(1 4 9) #:cumulative? #t #:proc sqrt)
@result{} \"1, 2, and 3\"
@end example
yields:"
(let* ((word (if cumulative? "and " "or "))
(init (append (drop-right lst 1))))
(format #f "~a" (string-append
(string-join
(map (compose maybe-object->string proc) init)
", " 'suffix)
word
(maybe-object->string (proc (last lst)))))))
;;;
;;; Serializers.
;;;
(define ini-config? list?)
(define (generic-serialize-ini-config-section section proc)
"Format a section from SECTION for an INI configuration.
Apply the procedure PROC on SECTION after it has been converted to a string"
(format #f "[~a]\n" (proc section)))
(define default-ini-format-section
(match-lambda
((section subsection)
(string-append (maybe-object->string section) " "
(maybe-object->string subsection)))
(section
(maybe-object->string section))))
(define* (generic-serialize-ini-config
#:key
(combine-ini string-join)
(combine-alist string-append)
(combine-section-alist string-append)
(format-section default-ini-format-section)
serialize-field
fields)
"Create an INI configuration from nested lists FIELDS. This uses
@code{generic-serialize-ini-config-section} and @{generic-serialize-alist} to
serialize the section and the association lists, respectively.
@example
(generic-serialize-ini-config
#:serialize-field (lambda (a b) (format #f \"~a = ~a\n\" a b))
#:format-section (compose string-capitalize symbol->string)
#:fields '((application ((key . value)))))
@end example
@result{} \"[Application]\nkey = value\n\""
(combine-ini
(map (match-lambda
((section alist)
(combine-section-alist
(generic-serialize-ini-config-section section format-section)
(generic-serialize-alist combine-alist serialize-field alist))))
fields)
"\n"))
(define* (generic-serialize-git-ini-config
#:key
(combine-ini string-join)
(combine-alist string-append)
(combine-section-alist string-append)
(format-section default-ini-format-section)
serialize-field
fields)
"Like @code{generic-serialize-ini-config}, but the section can also
have a @dfn{subsection}. FORMAT-SECTION will take a list of two
elements: the section and the subsection."
(combine-ini
(map (match-lambda
((section subsection alist)
(combine-section-alist
(generic-serialize-ini-config-section
(list section subsection) format-section)
(generic-serialize-alist combine-alist serialize-field alist)))
((section alist)
(combine-section-alist
(generic-serialize-ini-config-section section format-section)
(generic-serialize-alist combine-alist serialize-field alist))))
fields)
"\n"))
(define yaml-config? list?)
(define (make-yaml-indent depth)
(make-string (* 2 depth) #\space))
(define ((serialize-yaml-value depth) value)
(let* ((tab (make-yaml-indent depth)))
(cond
((string? value)
(list (format #f "'~a'" value)))
((boolean? value)
(list (format #f "~a" (if value "true" "false"))))
((file-like? value)
(list value))
((alist? value)
(serialize-yaml-alist value #:depth (1+ depth)))
((vector? value)
(serialize-yaml-vector value #:depth depth))
(else (list (format #f "~a" value))))))
(define ((serialize-yaml-key depth) key)
(when (vector? key)
(raise (formatted-message
(G_ "Vector as key value are not supported by serializer, \
try to avoid them. ~a") key)))
((serialize-yaml-value depth) key))
(define ((serialize-yaml-key-value depth) key value)
(let ((tab (make-yaml-indent depth)))
`("\n"
,tab
,@((serialize-yaml-key depth) key) ": "
,@((serialize-yaml-value depth) value))))
(define ((serialize-yaml-vector-elem depth) elem)
(let ((tab (make-yaml-indent (1+ depth))))
(cons*
"\n" tab "- "
((serialize-yaml-value (1+ depth)) elem))))
(define* (serialize-yaml-vector vec #:key (depth 0))
(append-map (serialize-yaml-vector-elem depth) (vector->list vec)))
(define* (serialize-yaml-alist lst #:key (depth 0))
(generic-serialize-alist append (serialize-yaml-key-value depth) lst))
(define (serialize-yaml-config config)
"Simplified yaml serializer, which supports only a subset of yaml, use
it with caution."
(serialize-yaml-alist config))
(define (string-or-gexp? sg) (or (string? sg) (gexp? sg)))
(define (serialize-string-or-gexp field-name val) "")
;; Guix proper has a different version of text-config.
(define (gexp-text-config? config)
(and (list? config) (every string-or-gexp? config)))
(define (serialize-gexp-text-config field-name val)
#~(string-append #$@(interpose val "\n" 'suffix)))
;;;
;;; Miscellaneous.
;;;
(define rest cdr)
;; Confusing with maybe-list type.
(define (maybe-list a)
"If A is a list, return it, otherwise return a singleton list with A."
(if (list? a)
a
(list a)))
;; If EXPR1 evaluates to a non-@code{#f} value and EXPR2 is specified,
;; return EXPR2; if it isn't specified, return EXPR1. Otherwise, return
;; an empty list @code{'()}.
(define-syntax optional
(syntax-rules ()
((_ expr1)
(if expr1 expr1 '()))
((_ expr1 expr2)
(if expr1 expr2 '()))))
(define (wrap-package pkg executable-name gexp)
"Create a @code{<package>} object that is a wrapper for PACKAGE, and
runs GEXP. NAME is the name of the executable that will be put in the store."
(let* ((wrapper-name (string-append executable-name "-wrapper"))
(wrapper (program-file wrapper-name gexp)))
(package
(inherit pkg)
(name wrapper-name)
(source wrapper)
(propagated-inputs `((,(package-name pkg) ,pkg)))
(build-system trivial-build-system)
(arguments
`(#:modules
((guix build utils))
#:builder
(begin
(use-modules (guix build utils)
(srfi srfi-1))
(let* ((bin (string-append %output "/bin"))
(wrapper (assoc-ref %build-inputs "source")))
(mkdir-p bin)
(copy-file wrapper (string-append bin "/" ,executable-name)))))))))
;;;
;;; Enums.
;;;
(define-record-type <enum>
(make-enum name value)
enum?
(name enum-name)
(value enum-value))
;; Copied from (gnu services configuration)
(define-syntax-rule (id ctx parts ...)
"Assemble PARTS into a raw (unhygienic) identifier."
(datum->syntax ctx (symbol-append (syntax->datum parts) ...)))
;; (define-enum pinentry-flavor
;; '(emacs gtk qt ncurses tty))
;;
;; (pinentry-flavor? 'gtk)
;; => #t
;;
;; (enum-value pinentry-flavor)
;; => '(emacs gtk qt ncurses tty)
;;
;; (pinentry-flavor? 'vim)
;; exception: `pinetry-flavor' must be one of `emacs', `gtk', `qt',
;; `ncurses', or `tty', was given `vim'
(define-syntax define-enum
(lambda (x)
(syntax-case x ()
((_ stem value)
(with-syntax ((stem? (id #'stem #'stem #'?))
(msg (list->human-readable-list
(second (syntax->datum #'value))
#:proc (cut format #f "`~a'" <>))))
#'(begin
(define stem (make-enum (quote stem) value))
(define (stem? val)
(if (member val value)
#t
(raise (formatted-message
(G_ "`~a' must of ~a, was given: ~s")
(enum-name stem)
(syntax->datum msg)
val))))))))))