Configure network for guix setup

This commit is contained in:
Ray Miller 2025-06-18 09:54:23 +01:00
parent 481e415883
commit c3e133073a

View file

@ -7,6 +7,7 @@ systemctl --user stop guix.service || true
systemctl --user stop gnu-store-volume.service || true
systemctl --user stop guix-home-volume.service || true
systemctl --user stop guix-var-volume.service || true
systemctl --user stop guix-network.service || true
(
cd $(mktemp -d)
@ -28,6 +29,16 @@ QUADLETS="${HOME}/.config/containers/systemd/"
mkdir -p "${QUADLETS}"
cat > "${QUADLETS}/guix.network" <<EOF
[Unit]
Description = Network for Guix service
[Network]
[Install]
WantedBy = multi-user.target default.target
EOF
cat > "${QUADLETS}/gnu-store.volume" <<EOF
[Unit]
Description = Create GNU Store data volume
@ -79,6 +90,7 @@ Volume = guix-var.volume:/var/guix
Volume = guix-home.volume:/home/guix
Volume = gnu-store.volume:/gnu/store
PodmanArgs = --privileged
Network = guix.network
[Install]
WantedBy = multi-user.target default.target
@ -86,6 +98,7 @@ EOF
systemctl --user daemon-reload
systemctl --user start guix-network.service
systemctl --user start guix-var-volume.service
systemctl --user start gnu-store-volume.service
systemctl --user start guix-home-volume.service