Add substitute seed manifests

This commit is contained in:
2026-03-31 00:04:51 +02:00
parent 6956a41270
commit dadded91e1
3 changed files with 120 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
(define-module (manifests substitutes base)
#:use-module (gnu packages)
#:use-module (guix profiles)
#:use-module (nbde packages crypto)
#:use-module (tribes packages otp)
#:use-module (tribes packages terminals))
(define %base-specifications
'("bash-minimal"
"coreutils"
"diffutils"
"findutils"
"gawk"
"grep"
"gzip"
"inetutils"
"iproute2"
"less"
"nss-certs"
"openssh"
"postgresql"
"procps"
"rsync"
"sed"
"tar"
"which"
"xz"
"cryptsetup"
"dosfstools"
"e2fsprogs"
"gptfdisk"
"kmod"
"parted"
"util-linux"))
(packages->manifest
(append (map specification->package %base-specifications)
(list clevis
tang
luksmeta
erlang-28
elixir-otp28
elixir-hex-otp28
ghostty-terminfo)))

View File

@@ -0,0 +1,37 @@
(define-module (manifests substitutes installer)
#:use-module (gnu packages)
#:use-module (guix profiles)
#:use-module (nbde packages crypto))
(define %installer-specifications
'("bash-minimal"
"coreutils"
"diffutils"
"findutils"
"gawk"
"grep"
"gzip"
"guix"
"inetutils"
"iproute2"
"kexec-tools"
"less"
"nss-certs"
"procps"
"rsync"
"sed"
"tar"
"which"
"xz"
"cryptsetup"
"dosfstools"
"e2fsprogs"
"gptfdisk"
"kmod"
"parted"
"util-linux"))
(packages->manifest
(append (map specification->package %installer-specifications)
(list clevis
luksmeta)))

View File

@@ -0,0 +1,39 @@
(define-module (manifests substitutes tribes-node)
#:use-module (gnu packages)
#:use-module (guix profiles)
#:use-module (tribes packages otp)
#:use-module (tribes packages source)
#:use-module (tribes packages terminals))
(define %tribes-node-specifications
'("nss-certs"
"openssh"
"postgresql"
"rsync"
"ripgrep"
"fd"
"tmux"
"neovim"
"btop"))
(define (make-tribes-node-manifest)
(let ((source-directory (getenv "TRIBES_SOURCE_DIRECTORY"))
(mix-deps-directory (getenv "TRIBES_MIX_DEPS_DIRECTORY"))
(parrhesia-directory (getenv "TRIBES_PARRHESIA_DIRECTORY")))
(packages->manifest
(append
(map specification->package %tribes-node-specifications)
(list erlang-28
elixir-otp28
elixir-hex-otp28
ghostty-terminfo)
(if (and source-directory mix-deps-directory parrhesia-directory)
(list
(tribes-source-package
(tribes-source-directory->local-file source-directory)
(tribes-source-directory->local-file mix-deps-directory)
(tribes-source-directory->local-file parrhesia-directory)
#:version (or (getenv "TRIBES_RELEASE_VERSION") "dev")))
'())))))
(make-tribes-node-manifest)