this post was submitted on 01 Nov 2025
16 points (100.0% liked)

Nix / NixOS

2530 readers
28 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

I am pretty happy with my configs now, with home manager but no flakes so far. I am, however, annoyed by all the dotfiles that I didn't define, and I'm worried how many other files are laying around without getting imperatively defined.

I'm sort of picturing a kiosk mode, where every time I reboot everything is wiped and I only have what I defined. Any files I want to keep are on other partitions or network locations mapped in my config. If a new config file is created by changing a setting in an application, I want to be notified so I can add it to my Nix configs.

Is this possible? Is it a terrible idea?

The biggest challenge I see is in installing games, because it looks like they often leave bits all over the place.

you are viewing a single comment's thread
view the rest of the comments
[–] gsx@discuss.tchncs.de 7 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

I did more or less your idea with kiosk mode. Everything which is not explicitly defined by nix is on tmpfs in my setup. But I don't play games on this machine, so I can't say anything to this.

I've got the idea from "erase your darlings": https://grahamc.com/blog/erase-your-darlings/

The same thing with btrfs: https://hanckmann.com/posts/20230104-nixos-and-erasing-my-darlings/

The whole idea is about impermanence: https://github.com/nix-community/impermanence

[–] clay_pidgin@sh.itjust.works 2 points 3 weeks ago (1 children)

This is fabulous - exactly what I was hoping for!

I feel like I want a easy to either detect live, or diff before shutdown, changes and file creation that I might want to add to my impermanent configs.

[–] responsible_sith@programming.dev 3 points 2 weeks ago (1 children)

If you go with the btrfs option, you could change the wipe script to copy all files to a specific location and manually inspect that after reboot.

[–] clay_pidgin@sh.itjust.works 1 points 2 weeks ago

That sounds clever. I like it.

Never used BTRFS but notes a good time to learn!