Hey folks! After using Fedora Atomic for quite a while and really appreciating its approach, I’ve been eyeing one particular feature from NixOS: its congruent system management. Inspired from Graham Christensen’s “Erase your darlings” post, I’d like to explore implementing something similar to NixOS’ impermanence module on Fedora Atomic as one step towards better state management.

Why not just switch to NixOS? Well, while NixOS’s package management and declarative approach are incredible, I specifically value Fedora’s stringent package vetting and security practices. The nixpkgs repository, despite its impressive scope, operates more like a user repository in terms of security standards.

I’ve already made some progress with the following:

  • Fedora Atomic’s shift to bootable OCI containers has helped with base system reproducibility when one creates their own images. This process has thankfully been streamlined by templates offered by either uBlue or BlueBuild
  • Using chezmoi for dotfiles (would’ve loved home-manager if it played nicer with SELinux)

My current (most likely naive and perhaps even wrong) approach involves tmpfs mounts and bind mounts to /persist, along with systemd-tmpfiles. I’m well aware this won’t give me the declarative goodness of NixOS, nor will it make the system truly stateless - there’s surely plenty of state I’m missing - but I’m hoping it might be another step in the right direction.

Particularly interested in:

  • Best practices for managing persistent vs temporary state
  • Working with rpm-ostree’s (or bootc’) assumptions
  • Tools or scripts that might help
  • Alternative approaches that achieve similar goals

Thanks in advance!

  • QuazarOmegaA
    link
    fedilink
    arrow-up
    2
    ·
    10 hours ago

    Sorry, can’t help you there since I’ve found out about that impermanence thing with this post, but I have a question, what is the problem that doesn’t allow you to use Home Manager on Fedora Atomic? AFAIK you just run DeterminateSystems’s Nix installer and everything is set up correctly, aside from maybe a couple of configurations, then you install Home Manager as usual, as the official documentation says

    • jamesbunagna@discuss.onlineOP
      link
      fedilink
      arrow-up
      2
      ·
      6 hours ago

      Honestly, you could be absolutely right. I haven’t revisited Nix since Bazzite Buzz #12 informed us on the following:

      “The Nix ujust script has also been removed due to conflicts with SELinux policies. Users can still install the Nix package manager manually if they so desire at their own risk.”

      However, the above could be outdated; I simply don’t know. Are you aware of any developments that have changed things for the better?

      • QuazarOmegaA
        link
        fedilink
        arrow-up
        1
        ·
        4 hours ago

        I don’t remember when this installer was declared stable for use on Fedora, I have installed it in May myself, so after that post.

        In the issues tab there seems to be some problems still, like #1325, for me, at least, it’s mostly all fine, the only issue I still have is that some things don’t work due to the user’s home directory being a synlink to /var/home/<username>, rare enough that I still use it