3 ms·
I mount '/' as a tmpfs so yes, I nuke my OS every reboot. It's reconstructed from the /nix/store and obviously my homedir is on a persistent volume.
by anotherhue 3y ago
I mount '/' as a tmpfs so yes, I nuke my OS every reboot.
It's reconstructed from the /nix/store and obviously my homedir is on a persistent volume.
- eikenberry 3y agoIf this setup could be combined with an easy way to customize things, like ublue (https://ublue.it/ https://ublue.it/) lets you customzie fedora silverblue using Dockerfile configs, I'd adopt it in a heartbeat.
- bfrog 3y agoI’d think configuration.nix would be enough?
- anotherhue 3y agoI have yet to find a non customisable nixos component. It'd a source system that's excellent at building from source so there's always a way.
- eikenberry 3y agoSorry, I was unclear, by easy I meant simple. Dockerfiles are simple. I've yet to find an equivalently simple way with Nix.
- anotherhue 3y agoI haven't tried it but I would suggest looking here for some inspiration https://nixos.wiki/wiki/NixOS_Containers https://nixos.wiki/wiki/NixOS_Containers
- peoplearepeople 3y agoWhat does the config for doing that look like?
- abathur 3y agoThey are likely talking about using https://github.com/nix-community/impermanence https://github.com/nix-community/impermanence, which is inspired by ideas in https://grahamc.com/blog/erase-your-darlings/ https://grahamc.com/blog/erase-your-darlings/ Edit: comments on the latter at https://news.ycombinator.com/item?id=22856199 https://news.ycombinator.com/item?id=22856199
- anotherhue 3y agoThat's quite fancy, I use use a tmpfs mount for root and a few bind mounts for what I need to persist. https://news.ycombinator.com/item?id=35390782 https://news.ycombinator.com/item?id=35390782
- SkyMarshal 3y agohttps://elis.nu/blog/2020/05/nixos-tmpfs-as-root/ https://elis.nu/blog/2020/05/nixos-tmpfs-as-root/ https://elis.nu/blog/2020/06/nixos-tmpfs-as-home/ https://elis.nu/blog/2020/06/nixos-tmpfs-as-home/
- anotherhue 3y agoI posted a snippet before if you feel like checking my history Edit https://news.ycombinator.com/item?id=35390782 https://news.ycombinator.com/item?id=35390782
- peoplearepeople 3y agothank you!