Configure network for guix setup
This commit is contained in:
parent
481e415883
commit
c3e133073a
1 changed files with 13 additions and 0 deletions
|
@ -7,6 +7,7 @@ systemctl --user stop guix.service || true
|
||||||
systemctl --user stop gnu-store-volume.service || true
|
systemctl --user stop gnu-store-volume.service || true
|
||||||
systemctl --user stop guix-home-volume.service || true
|
systemctl --user stop guix-home-volume.service || true
|
||||||
systemctl --user stop guix-var-volume.service || true
|
systemctl --user stop guix-var-volume.service || true
|
||||||
|
systemctl --user stop guix-network.service || true
|
||||||
|
|
||||||
(
|
(
|
||||||
cd $(mktemp -d)
|
cd $(mktemp -d)
|
||||||
|
@ -28,6 +29,16 @@ QUADLETS="${HOME}/.config/containers/systemd/"
|
||||||
|
|
||||||
mkdir -p "${QUADLETS}"
|
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
|
cat > "${QUADLETS}/gnu-store.volume" <<EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description = Create GNU Store data volume
|
Description = Create GNU Store data volume
|
||||||
|
@ -79,6 +90,7 @@ Volume = guix-var.volume:/var/guix
|
||||||
Volume = guix-home.volume:/home/guix
|
Volume = guix-home.volume:/home/guix
|
||||||
Volume = gnu-store.volume:/gnu/store
|
Volume = gnu-store.volume:/gnu/store
|
||||||
PodmanArgs = --privileged
|
PodmanArgs = --privileged
|
||||||
|
Network = guix.network
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy = multi-user.target default.target
|
WantedBy = multi-user.target default.target
|
||||||
|
@ -86,6 +98,7 @@ EOF
|
||||||
|
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
|
|
||||||
|
systemctl --user start guix-network.service
|
||||||
systemctl --user start guix-var-volume.service
|
systemctl --user start guix-var-volume.service
|
||||||
systemctl --user start gnu-store-volume.service
|
systemctl --user start gnu-store-volume.service
|
||||||
systemctl --user start guix-home-volume.service
|
systemctl --user start guix-home-volume.service
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue