Impermanence: Difference between revisions
imported>Klaymore Says to put config in configuration.nix, comment that fuse.userAllowOther might not be needed |
imported>Klaymore Better Home Manager explanation about mounting folders into your home. Fixed Firefox dotfile comment |
||
| Line 60: | Line 60: | ||
You can just make a home partition on a drive and mount it as normal, so everything in <code>/home</code> or <code>/home/username</code> will be persisted. If you want your home to be impermanent as well, then mount it on tmpfs the same way as root. | You can just make a home partition on a drive and mount it as normal, so everything in <code>/home</code> or <code>/home/username</code> will be persisted. If you want your home to be impermanent as well, then mount it on tmpfs the same way as root. | ||
For persisting files in your home, you could simply use [https://github.com/nix-community/home-manager Home Manager] like normal. However, then files are stored read-only in the Nix store. In order to persist files while still being writable, you can use the [https://github.com/nix-community/impermanence Home Manager Impermanence module]. It will fuse mount and link files | For persisting files in your home, you could simply use [https://github.com/nix-community/home-manager Home Manager] like normal. However, then files are stored read-only in the Nix store. In order to persist files while still being writable, you can use the [https://github.com/nix-community/impermanence Home Manager Impermanence module]. It will fuse mount folders and link files from persistent storage into your home directory. | ||
| Line 102: | Line 102: | ||
"Atom/.atom/atom-discord" | "Atom/.atom/atom-discord" | ||
"Atom/.atom/packages" | "Atom/.atom/packages" | ||
"Firefox/.mozilla" # bind mounted from /nix/dotfiles to /home/$USERNAME/.mozilla | "Firefox/.mozilla" # bind mounted from /nix/dotfiles/Firefox/.mozilla to /home/$USERNAME/.mozilla | ||
"Clementine/.config/Clementine" | "Clementine/.config/Clementine" | ||
]; | ]; | ||