migrations: keep system helpers sudo-compatible

This commit is contained in:
Ryan Hughes committed 2026-06-04 18:35:01 -04:00
1 parent bf14f69017
commit 27f6d9d364
12 files changed
+27 -27

No files matched your search

@@ -10,8 +10,8 @@ if [[ $MACBOOK_MODEL =~ MacBook(8,1|9,1|10,1)|MacBookPro13,[123]|MacBookPro14,[1
if [[ -f $NVME_DEVICE ]]; then
echo "Applying NVMe suspend fix..."
mkdir -p /etc/systemd/system
cat > /etc/systemd/system/omarchy-nvme-suspend-fix.service <<'EOF'
sudo mkdir -p /etc/systemd/system
sudo tee /etc/systemd/system/omarchy-nvme-suspend-fix.service >/dev/null <<'EOF'
[Unit]
Description=Omarchy NVMe Suspend Fix for MacBook
@@ -22,7 +22,7 @@ ExecStart=/bin/bash -c 'echo 0 > /sys/bus/pci/devices/0000\:01\:00.0/d3cold_allo
WantedBy=multi-user.target
EOF
systemctl enable omarchy-nvme-suspend-fix.service
sudo systemctl enable omarchy-nvme-suspend-fix.service
else
echo "Warning: NVMe device not found at expected PCI address (0000:01:00.0)"
echo "This fix may not be needed for this MacBook model"