65 lines
3 KiB
Org Mode
65 lines
3 KiB
Org Mode
![]() |
# -*- mode: org; coding: utf-8; -*-
|
||
|
|
||
|
#+TITLE: MacOS Subsystem for Guix
|
||
|
|
||
|
|
||
|
* Overview
|
||
|
MSG is an attempt to create a native-like experience for Guix on MacOS, using methods inspired by others like Podman/Docker/Lima. It uses Qemu with a prebuilt installer image to create a customized local Guix instance (supported on Intel and Apple Silicon based Macs). The base image is pretty barebones and is meant to be customized to your liking. To get a good idea of whats included you can reference the /etc/config.scm file within the built image.
|
||
|
|
||
|
* F.A.Q
|
||
|
- Q: Why does the cli generate the image locally instead of downloading a complete pre-built image like Podman?
|
||
|
- A: This is due to the final image requiring the admin account to be setup with the same UID as the host MacOS user. Podman accomplishes this by passing configuration values in it's ignition file, which are used to initialize the CoreOS image with the correct values on it's first run. Guix doesn't currently support a similar initialization method, so the image must be regenerated after the config has been updated with the correct values (UID, etc...). This is unlikely to change in the near future, unless Guix ends up adding some sort of similar functionality.
|
||
|
|
||
|
- Q: What are the long term goals of this project?
|
||
|
- A: I would like for this project to accomplish a few goals.
|
||
|
1. Be able to fully replace docker/podman desktop on MacOS
|
||
|
2. Give users a way to manage their MacOS dotfiles using Guix Home
|
||
|
3. Improve GUI application performance with X11/Xquartz
|
||
|
4. Introduce a MSG Desktop GUI to accompany the cli
|
||
|
|
||
|
* Requirements
|
||
|
- wget
|
||
|
- qemu
|
||
|
- autotools
|
||
|
- guile-next
|
||
|
- You can get guile-next from the following homebrew tap: https://github.com/aconchillo/homebrew-guile
|
||
|
- texinfo
|
||
|
|
||
|
These can be installed by running:
|
||
|
#+begin_src sh
|
||
|
brew install autoconf automake libtool wget qemu texinfo guile-next
|
||
|
#+end_src
|
||
|
|
||
|
* Installation
|
||
|
1. First clone this repository with:
|
||
|
#+begin_src sh
|
||
|
git clone https://pagure.io/MSG/msg-cli.git msg
|
||
|
cd msg
|
||
|
#+end_src
|
||
|
|
||
|
2. Build and install the cli using:
|
||
|
#+begin_src sh
|
||
|
autoreconf -vif && ./configure && make && sudo make install
|
||
|
#+end_src
|
||
|
|
||
|
3. Make sure to add the correct env vars set for guile-next/msg.
|
||
|
#+begin_src sh
|
||
|
export GUILE_LOAD_PATH=/opt/homebrew/share/guile/site/3.0
|
||
|
export GUILE_LOAD_COMPILED_PATH=/opt/homebrew/lib/guile/3.0/site-ccache
|
||
|
export GUILE_SYSTEM_EXTENSIONS_PATH=/opt/homebrew/lib/guile/3.0/extensions
|
||
|
|
||
|
export GUILE_LOAD_PATH=$GUILE_LOAD_PATH:/usr/local/share/guile/site/3.0/
|
||
|
export GUILE_LOAD_COMPILED_PATH=$GUILE_LOAD_COMPILED_PATH:/usr/local/lib/guile/3.0/site-ccache/
|
||
|
export GUILE_SYSTEM_EXTENSIONS_PATH=$GUILE_SYSTEM_EXTENSIONS_PATH:/usr/local/lib/guile/3.0/extensions
|
||
|
export PATH=/usr/local/bin:$PATH
|
||
|
#+end_src
|
||
|
|
||
|
* Usage
|
||
|
- msg machine (command)
|
||
|
- init: initializes a new MSG instance
|
||
|
- reinit: reinitializes an MSG instance (is destructive!)
|
||
|
- start: starts the initialized MSG instance
|
||
|
- stop: stops the running instance
|
||
|
- msg shell
|
||
|
- Creates an ssh connection to the running instance
|