Subject: error: remounting /gnu/store writable: Permission denied

From: Jitendra Nair <[email-masked]>
Date: Sat, 22 Mar 2025 13:14:42 +0530

Hello,

This SO answer https://unix.stackexchange.com/a/788716/567807 helped me fix
the error!

# set /gnu/store to rewrite
mount -o remount,rw /gnu/store

# Modify the file 'guix-daemon.cil' to include the additions mentioned at
the SO page https://unix.stackexchange.com/a/788716/567807

# Next snippet gotten from 'guix-install.sh'
var_guix=/var/guix/profiles/per-user/root/current-guix
semodule -i "${var_guix}/share/selinux/guix-daemon.cil"
restorecon -R /gnu /var/guix

# After rebooting the system I was able to run the guix commands without
the error!

Thanks!