Open dpatterbee opened 1 year ago
This would indeed be a useful feature! I would note in upcoming versions of SteamOS there is a vendor-provisioned nix
offload in /home/.steamos/offload
so the --persistence
flag is actually planned to be deprecated.
I am now wondering if there is some way to still support --persistence
even so...
This would indeed be a useful feature! I would note in upcoming versions of SteamOS there is a vendor-provisioned
nix
offload in/home/.steamos/offload
so the--persistence
flag is actually planned to be deprecated.I am now wondering if there is some way to still support
--persistence
even so...
The upsteam /nix
setup also provides a nix.mount
to perform the bind-mounting of /nix
, while the rootfs itself contains the empty directory. It should remain possible to mask nix.mount
under /etc
and provide your path for /nix
elsewhere without anything Steam Deck-specific.
Relying on external media like an sdcard of course requires getting your units setup right to wait for said device to appear and perhaps blocking the daemon until it does.
Due to the base model Steam Deck only having 64GB storage, I thought it would be a good idea to install nix to an SD card. I installed with
nix-installer install steam-deck --persistence /run/media/mmcblk0p1/nix
and this worked fine, right up until I rebooted. After a reboot, thenix.mount
service claims to work, but/nix
points to nowhere. This leads toensure-symlinked-units-resolve.service
failing withnix-daemon.service
not existing etc.I assume the issue is that the nix services run before the sd card has mounted or something and we need to wait, but I can't figure out the correct incantations to make this happen. I tried adding
RequiresMountsFor=/run/media/mmcblk0p1
tonix.mount
but this didn't help. Tbh it even looks likenix.mount
waits for the sd card mount but still it doesn't seem to work.I would imagine that this would be quite useful for a lot of steam deck users so help would be appreciated.