Author:
Hash:
Timestamp:
+58 -0 +/-5 browse
Kevin Schoon [me@kevinschoon.com]
02b09db492e08e5d744ebb430a9aba4d943108eb
Fri, 21 Aug 2026 23:48:49 +0000 (3 weeks ago)
| 1 | diff --git a/.gitignore b/.gitignore |
| 2 | index 0f589be..507396a 100644 |
| 3 | --- a/.gitignore |
| 4 | +++ b/.gitignore |
| 5 | @@ -17,6 +17,7 @@ demo |
| 6 | *.zst |
| 7 | /src |
| 8 | pkg |
| 9 | + mkosi.output |
| 10 | |
| 11 | dist/completion/* |
| 12 | dist/man/* |
| 13 | diff --git a/mkosi.conf b/mkosi.conf |
| 14 | new file mode 100644 |
| 15 | index 0000000..febc842 |
| 16 | --- /dev/null |
| 17 | +++ b/mkosi.conf |
| 18 | @@ -0,0 +1,9 @@ |
| 19 | + [Distribution] |
| 20 | + RepositoryKeyFetch = true |
| 21 | + |
| 22 | + [Output] |
| 23 | + OutputDirectory = mkosi.output |
| 24 | + |
| 25 | + [Runtime] |
| 26 | + VirtualMachineMonitor=qemu |
| 27 | + Console=gui |
| 28 | diff --git a/mkosi.conf.d/10-arch.conf b/mkosi.conf.d/10-arch.conf |
| 29 | new file mode 100644 |
| 30 | index 0000000..34e26f6 |
| 31 | --- /dev/null |
| 32 | +++ b/mkosi.conf.d/10-arch.conf |
| 33 | @@ -0,0 +1,22 @@ |
| 34 | + [Match] |
| 35 | + Profiles = ayllu-arch-build |
| 36 | + [Distribution] |
| 37 | + Distribution = arch |
| 38 | + |
| 39 | + [Content] |
| 40 | + PrepareScripts = mkosi.prepare.sh |
| 41 | + Packages = base |
| 42 | + curl |
| 43 | + git |
| 44 | + go-md2man |
| 45 | + mandoc |
| 46 | + mkosi |
| 47 | + sqlite |
| 48 | + fakeroot |
| 49 | + rust |
| 50 | + rust-analyzer |
| 51 | + zstd |
| 52 | + |
| 53 | + [Output] |
| 54 | + Output = ayllu-arch-build |
| 55 | + Format = directory |
| 56 | diff --git a/mkosi.conf.d/10-debian.conf b/mkosi.conf.d/10-debian.conf |
| 57 | new file mode 100644 |
| 58 | index 0000000..a079f92 |
| 59 | --- /dev/null |
| 60 | +++ b/mkosi.conf.d/10-debian.conf |
| 61 | @@ -0,0 +1,21 @@ |
| 62 | + [Match] |
| 63 | + Profiles = ayllu-debian-build |
| 64 | + [Distribution] |
| 65 | + Distribution = debian |
| 66 | + # Ayllu always targets Debian testing |
| 67 | + Release = testing |
| 68 | + |
| 69 | + [Content] |
| 70 | + PrepareScripts = mkosi.prepare.sh |
| 71 | + Packages = curl |
| 72 | + cargo |
| 73 | + dpkg-dev |
| 74 | + git |
| 75 | + mandoc |
| 76 | + sqlite3 |
| 77 | + rust-clippy |
| 78 | + |
| 79 | + [Output] |
| 80 | + Output = ayllu-build-debian |
| 81 | + Format = directory |
| 82 | + |
| 83 | diff --git a/mkosi.prepare.sh b/mkosi.prepare.sh |
| 84 | new file mode 100755 |
| 85 | index 0000000..98bc8ae |
| 86 | --- /dev/null |
| 87 | +++ b/mkosi.prepare.sh |
| 88 | @@ -0,0 +1,5 @@ |
| 89 | + #!/bin/sh |
| 90 | + # This is used to configure a mkosi environment for use as part of Ayllu's |
| 91 | + # build environment. |
| 92 | + |
| 93 | + useradd -d /src -c "Ayllu Build User" -m ayllu |