Impermanence: Difference between revisions
imported>Klaymore m Replaced $USERNAME with <username> so that it's not confused with normal variables |
imported>Klaymore Says to put config in configuration.nix, comment that fuse.userAllowOther might not be needed |
||
Line 29: | Line 29: | ||
Some files and folders should be persisted between reboots though (such as <code>/etc/nixos/</code>). This can be accomplished through bind mounts or by using the [https://github.com/nix-community/impermanence NixOS Impermanence module,] which will set up bind mounts and links as needed. | Some files and folders should be persisted between reboots though (such as <code>/etc/nixos/</code>). This can be accomplished through bind mounts or by using the [https://github.com/nix-community/impermanence NixOS Impermanence module,] which will set up bind mounts and links as needed. | ||
Put in <code>configuration.nix</code>: | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
{ config, pkgs, ... }: | { config, pkgs, ... }: | ||
Line 66: | Line 66: | ||
Put in <code>configuration.nix</code>: | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
{ config, pkgs, ... }: | { config, pkgs, ... }: | ||
Line 78: | Line 78: | ||
]; | ]; | ||
# might not be needed | |||
programs.fuse.userAllowOther = true; | programs.fuse.userAllowOther = true; | ||