Steam Deck: add configuration to preserve etc files starting with SteamOS 3.6 #12

Open
opened 2024-05-21 04:57:36 +00:00 by ihaveamac · 4 comments

Starting with SteamOS 3.6, files in /etc are now preserved on a whitelist (with files not in it moved to /etc/previous). Currently as of this beta these nix-related files are not kept:

  • /etc/profile.d/nix.sh
  • /etc/fish/conf.d/nix.fish
  • /etc/nix/
  • /etc/systemd/system/nix-daemon.socket (the .service is kept)
  • /etc/tmpfiles.d/nix-daemon.conf

A file can be created inside /etc/atomic-update.conf.d/ to keep these on updates.

Since 3.6 is a beta, the default list might change, so it might be a good idea to wait and see first.

Beta notes for 3.6.0: https://store.steampowered.com/news/app/1675200/view/4213757668851885208

The default list of preserved files: https://gist.github.com/ihaveamac/871bba4e0627112581c78871c540abbc

Starting with SteamOS 3.6, files in /etc are now preserved on a whitelist (with files not in it moved to /etc/previous). Currently as of this beta these nix-related files are not kept: * /etc/profile.d/nix.sh * /etc/fish/conf.d/nix.fish * /etc/nix/ * /etc/systemd/system/nix-daemon.socket (the .service is kept) * /etc/tmpfiles.d/nix-daemon.conf A file can be created inside /etc/atomic-update.conf.d/ to keep these on updates. Since 3.6 is a beta, the default list might change, so it might be a good idea to wait and see first. Beta notes for 3.6.0: https://store.steampowered.com/news/app/1675200/view/4213757668851885208 The default list of preserved files: https://gist.github.com/ihaveamac/871bba4e0627112581c78871c540abbc
Author

Testing again, it also needs to preserve these files which were removed following an OS update:

  • /etc/bashrc
  • /etc/zsh/zshrc
  • /etc/zshrc
Testing again, it also needs to preserve these files which were removed following an OS update: * /etc/bashrc * /etc/zsh/zshrc * /etc/zshrc
Author

I just noticed the Determinate Installer does this now: https://github.com/DeterminateSystems/nix-installer/pull/1355

I just noticed the Determinate Installer does this now: https://github.com/DeterminateSystems/nix-installer/pull/1355
Author

Bump, it would be nice if this was implemented since it would make setup on modern SteamOS easier. Otherwise I would have to manually add the files, or use the detsys installer first.

Bump, it would be nice if this was implemented since it would make setup on modern SteamOS easier. Otherwise I would have to manually add the files, or use the detsys installer first.
Member

@ihaveamac wrote in #12 (comment):

I just noticed the Determinate Installer does this now: https://github.com/DeterminateSystems/nix-installer/pull/1355

We recently rebased on top of modern DetSys Installer, so this fix is now backported. For reasons, the installer from the website isn't yet updated. The installer built from main branch of the Forgejo repo should handle this, though.

I'll close this issue once we've updated the installer on the website. In the meantime, if you could test the installer from the main branch, it would be very helpful!

@ihaveamac wrote in https://git.lix.systems/lix-project/lix-installer/issues/12#issuecomment-8648: > I just noticed the Determinate Installer does this now: https://github.com/DeterminateSystems/nix-installer/pull/1355 We recently rebased on top of modern DetSys Installer, so this fix is now backported. For *reasons*, the installer from the website isn't yet updated. The installer built from `main` branch of the Forgejo repo should handle this, though. I'll close this issue once we've updated the installer on the website. In the meantime, if you could test the installer from the `main` branch, it would be very helpful!
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix-installer#12
No description provided.