From d8e9bc7d8b53fc6d32f8b821dc04e1a8e8598c83 Mon Sep 17 00:00:00 2001 From: 1ndev <1ndevelopment@protonmail.com> Date: Sat, 14 Dec 2024 17:43:00 -0800 Subject: [PATCH] Adjust package manager commands --- configure_system.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/configure_system.sh b/configure_system.sh index e448b63..6e786c7 100755 --- a/configure_system.sh +++ b/configure_system.sh @@ -29,8 +29,9 @@ echo '' echo "Install nix ? [y/n]" read inputnix if [[ $inputnix =~ ^[Yy]$ ]]; then +sudo su -c ' { -sudo cat << EOF +cat << EOF [Unit] Description=Create a `/nix` directory to be used for bind mounting PropagatesStopTo=nix-daemon.service @@ -52,9 +53,10 @@ ExecStop=rmdir /nix ExecStop=steamos-readonly enable RemainAfterExit=true EOF -} > /etc/systemd/system/nix-directory.service +} > /etc/systemd/system/nix-directory.service' +sudo su -c ' { -sudo cat << EOF +cat << EOF [Unit] Description=Mount `/home/nix` on `/nix` PropagatesStopTo=nix-daemon.service @@ -71,9 +73,10 @@ Type=none DirectoryMode=0755 Options=bind EOF -} > /etc/systemd/system/nix.mount +} > /etc/systemd/system/nix.mount' +sudo su -c ' { -sudo cat << EOF +cat << EOF [Unit] Description=Ensure Nix related units which are symlinked resolve After=nix.mount @@ -92,7 +95,7 @@ ExecStart=/usr/bin/systemctl restart --no-block sockets.target timers.target mul [Install] WantedBy=sysinit.target EOF -} > /etc/systemd/system/ensure-symlinked-units-resolve.service +} > /etc/systemd/system/ensure-symlinked-units-resolve.service' sudo systemctl daemon-reload sudo systemctl enable --now ensure-symlinked-units-resolve.service