Fix the nix-directory.service possibly erroring and preventing nix from working (#101)
This commit is contained in:
parent
fe83b35199
commit
ac5660b3e0
|
@ -99,7 +99,7 @@ impl Planner for SteamDeck {
|
||||||
let persistence = &self.persistence;
|
let persistence = &self.persistence;
|
||||||
|
|
||||||
let nix_directory_buf = format!(
|
let nix_directory_buf = format!(
|
||||||
"
|
"\
|
||||||
[Unit]\n\
|
[Unit]\n\
|
||||||
Description=Create a `/nix` directory to be used for bind mounting\n\
|
Description=Create a `/nix` directory to be used for bind mounting\n\
|
||||||
PropagatesStopTo=nix-daemon.service\n\
|
PropagatesStopTo=nix-daemon.service\n\
|
||||||
|
@ -108,7 +108,6 @@ impl Planner for SteamDeck {
|
||||||
\n\
|
\n\
|
||||||
[Service]\n\
|
[Service]\n\
|
||||||
Type=oneshot\n\
|
Type=oneshot\n\
|
||||||
ExecCondition=sh -c \"if [ -d /nix ]; then exit 1; else exit 0; fi\"
|
|
||||||
ExecStart=steamos-readonly disable\n\
|
ExecStart=steamos-readonly disable\n\
|
||||||
ExecStart=mkdir -vp /nix\n\
|
ExecStart=mkdir -vp /nix\n\
|
||||||
ExecStart=chmod -v 0755 /nix\n\
|
ExecStart=chmod -v 0755 /nix\n\
|
||||||
|
|
Loading…
Reference in a new issue